mirror of
https://github.com/Reuh/language-candran.git
synced 2025-10-27 20:29:31 +00:00
Merge pull request #16 from rm-code/hl
Change 'and', 'or' and 'not' to control instead of operator keyword
This commit is contained in:
commit
ea2a1c705f
1 changed files with 1 additions and 5 deletions
|
|
@ -130,7 +130,7 @@
|
|||
]
|
||||
}
|
||||
{
|
||||
'match': '\\b(break|do|else|for|if|elseif|return|then|repeat|while|until|end|function|local|in)\\b'
|
||||
'match': '\\b(and|or|not|break|do|else|for|if|elseif|return|then|repeat|while|until|end|function|local|in)\\b'
|
||||
'name': 'keyword.control.lua'
|
||||
}
|
||||
{
|
||||
|
|
@ -149,10 +149,6 @@
|
|||
'match': '(?<![^.]\\.|:)\\b(coroutine\\.(create|resume|running|status|wrap|yield)|string\\.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\\.(concat|insert|maxn|remove|sort)|math\\.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pow|rad|random|randomseed|sinh?|sqrt|tanh?)|io\\.(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)|os\\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\\.(cpath|loaded|loadlib|path|preload|seeall)|debug\\.(debug|[gs]etfenv|[gs]ethook|getinfo|[gs]etlocal|[gs]etmetatable|getregistry|[gs]etupvalue|traceback))\\b(?=\\s*(?:[({"\']|\\[\\[))'
|
||||
'name': 'support.function.library.lua'
|
||||
}
|
||||
{
|
||||
'match': '\\b(and|or|not)\\b'
|
||||
'name': 'keyword.operator.lua'
|
||||
}
|
||||
{
|
||||
'match': '\\b([A-Za-z_]\\w*)\\b(?=\\s*(?:[({"\']|\\[\\[))'
|
||||
'name': 'support.function.any-method.lua'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue