Skip to content

Commit

Permalink
Merge pull request #16 from rm-code/hl
Browse files Browse the repository at this point in the history
Change 'and', 'or' and 'not' to control instead of operator keyword
  • Loading branch information
FireZenk committed Jun 28, 2015
2 parents eb7c93d + f59e9a4 commit ea2a1c7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions grammars/lua.cson
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
{
Expand All @@ -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'
Expand Down

0 comments on commit ea2a1c7

Please sign in to comment.