Skip to content

Commit 7a506be

Browse files
committed
Add two punctuation scopes to function definitions
1 parent 7362802 commit 7a506be

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Syntaxes/Lua.plist

+12-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<array>
2121
<dict>
2222
<key>begin</key>
23-
<string>\b(?:(local)\s+)?(function)\s*(?:\s+([a-zA-Z_][a-zA-Z0-9_]*(?:[\.:][a-zA-Z_][a-zA-Z0-9_]*)?)\s*)?(\()</string>
23+
<string>\b(?:(local)\s+)?(function)\s*(?:\s+([a-zA-Z_][a-zA-Z0-9_]*(?:([\.:])[a-zA-Z_][a-zA-Z0-9_]*)?)\s*)?(\()</string>
2424
<key>beginCaptures</key>
2525
<dict>
2626
<key>1</key>
@@ -39,6 +39,11 @@
3939
<string>entity.name.function.lua</string>
4040
</dict>
4141
<key>4</key>
42+
<dict>
43+
<key>name</key>
44+
<string>punctuation.separator.parameter.lua</string>
45+
</dict>
46+
<key>5</key>
4247
<dict>
4348
<key>name</key>
4449
<string>punctuation.definition.parameters.begin.lua</string>
@@ -64,6 +69,12 @@
6469
<key>name</key>
6570
<string>variable.parameter.function.lua</string>
6671
</dict>
72+
<dict>
73+
<key>match</key>
74+
<string>,</string>
75+
<key>name</key>
76+
<string>punctuation.separator.arguments.lua</string>
77+
</dict>
6778
</array>
6879
</dict>
6980
<dict>

0 commit comments

Comments
 (0)