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:
parent
7d9867278f
commit
a2d2fcdebd
1 changed files with 2 additions and 2 deletions
|
|
@ -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'
|
||||
}
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue