Skip to content

Commit 913616e

Browse files
committed
update color
1 parent 9ca0e33 commit 913616e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

syntaxes/lua.tmLanguage.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"scopeName": "source.lua",
44
"patterns": [
55
{
6-
"begin": "\\b(?:(local)\\s+)?(function)\\b(?!,)",
6+
"begin": "\\b(?:(local)\\s+)?(function)\\b(?![,:])",
77
"beginCaptures": {
88
"1": {
99
"name": "keyword.local.lua"
@@ -145,11 +145,11 @@
145145
"name": "keyword.local.lua"
146146
},
147147
{
148-
"match": "\\b(function)\\b(?!,)",
148+
"match": "\\b(function)\\b(?![,:])",
149149
"name": "keyword.control.lua"
150150
},
151151
{
152-
"match": "(?<![^.]\\.|:)\\b(false|nil|true|_ENV|_G|_VERSION|math\\.(pi|huge|maxinteger|mininteger)|utf8\\.charpattern|io\\.(stdin|stdout|stderr)|package\\.(config|cpath|loaded|loaders|path|preload|searchers))\\b|(?<![.])\\.{3}(?!\\.)",
152+
"match": "(?<![^.]\\.|:)\\b(false|nil(?!:)|true|_ENV|_G|_VERSION|math\\.(pi|huge|maxinteger|mininteger)|utf8\\.charpattern|io\\.(stdin|stdout|stderr)|package\\.(config|cpath|loaded|loaders|path|preload|searchers))\\b|(?<![.])\\.{3}(?!\\.)",
153153
"name": "constant.language.lua"
154154
},
155155
{

0 commit comments

Comments
 (0)