1
0
Fork 0
mirror of https://github.com/Reuh/language-candran.git synced 2025-10-27 12:19:30 +00:00

Better short function match, added push

This commit is contained in:
Étienne Fildadut 2017-08-25 17:11:05 +02:00
parent 7d9867278f
commit a2d2fcdebd

View file

@ -31,7 +31,7 @@
'name': 'variable.parameter.function.lua'
'3':
'name': 'punctuation.definition.parameters.end.lua'
'match': '(?<!function|\\w|\\s)\\s*(\\()((?:\\s*[\\w]+\\s*(?:=\\s*[^,]+?)?,?)*)(\\))'
'match': '(?<!function|\\w|\\s)\\s*(\\()((?:(?:\\s*[\\w]+\\s*(?:=\\s*[^,]+?)?,)*(?:\\s*[\\w]+\\s*(?:=\\s*[^,]+?)?))?)(\\))'
'name': 'meta.function.lua'
}
{
@ -141,7 +141,7 @@
]
}
{
'match': '\\b(and|or|not|break|do|else|for|if|elseif|return|then|repeat|while|until|end|function|local|in|goto|continue|let)\\b'
'match': '\\b(and|or|not|break|do|else|for|if|elseif|return|then|repeat|while|until|end|function|local|in|goto|continue|let|push)\\b'
'name': 'keyword.control.lua'
}
{