diff --git a/grammars/lua.cson b/grammars/lua.cson index 3d748fa..2c9209a 100644 --- a/grammars/lua.cson +++ b/grammars/lua.cson @@ -2,6 +2,9 @@ 'fileTypes': [ 'lua' 'nse' + 'rockspec' + 'luacheckrc' + 'lakefile' ] 'firstLineMatch': '\\A#!.*?\\blua\\b' 'name': 'Lua' @@ -113,7 +116,7 @@ 'name': 'comment.block.lua' } { - 'begin': '(^[ \\t]+)?(?=--(?!\\[\\[))' + 'begin': '(^[ \\t]+)?(?=--(?!\\[(=*)\\[))' 'beginCaptures': '1': 'name': 'punctuation.whitespace.comment.leading.lua' @@ -130,7 +133,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|goto)\\b' 'name': 'keyword.control.lua' } { @@ -149,10 +152,6 @@ 'match': '(?