{"name":"Terra","scopeName":"source.terra","patterns":[{"name":"meta.function.terra","match":"\\b(terra|function)\\s+([a-zA-Z_.:]+[.:])?([a-zA-Z_]\\w*)\\s*(\\()([^)]*)(\\))","captures":{"1":{"name":"keyword.control.terra"},"2":{"name":"entity.name.function.scope.terra"},"3":{"name":"entity.name.function.terra"},"4":{"name":"punctuation.definition.parameters.begin.terra"},"5":{"name":"variable.parameter.function.terra"},"6":{"name":"punctuation.definition.parameters.end.terra"}}},{"name":"constant.numeric.terra","match":"(?\u003c![\\d.])\\s0x[a-fA-F\\d]+|\\b\\d+(\\.\\d+)?([eE]-?\\d+)?|\\.\\d+([eE]-?\\d+)?"},{"name":"string.quoted.single.terra","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.terra","match":"\\\\."}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.terra"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.terra"}}},{"name":"string.quoted.double.terra","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.terra","match":"\\\\."}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.terra"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.terra"}}},{"name":"string.quoted.other.multiline.terra","begin":"(?\u003c!--)\\[(=*)\\[","end":"\\]\\1\\]","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.terra"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.terra"}}},{"name":"comment.block.terra","begin":"--\\[(=*)\\[","end":"\\]\\1\\]","captures":{"0":{"name":"punctuation.definition.comment.terra"}}},{"name":"comment.line.double-dash.terra","match":"(--)(?!\\[\\[).*$\\n?","captures":{"1":{"name":"punctuation.definition.comment.terra"}}},{"name":"keyword.control.terra","match":"\\b(break|do|else|for|if|elseif|return|then|repeat|while|until|end|function|local|in)\\b"},{"name":"constant.language.terra","match":"(?\u003c![^.]\\.|:)\\b(false|nil|true|_G|_VERSION|math\\.(pi|huge))\\b|(?\u003c![.])\\.{3}(?!\\.)"},{"name":"variable.language.self.terra","match":"(?\u003c![^.]\\.|:)\\b(self)\\b"},{"name":"support.function.terra","match":"(?\u003c![^.]\\.|:)\\b(assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|loadfile|loadstring|module|next|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\\b(?=[( {])"},{"name":"support.function.library.terra","match":"(?\u003c![^.]\\.|:)\\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(?=[( {])"},{"name":"keyword.operator.terra","match":"\\b(and|or|not)\\b"},{"name":"keyword.operator.terra","match":"\\+|-|%|#|\\*|\\/|\\^|==?|~=|\u003c=?|\u003e=?|(?\u003c!\\.)\\.{2}(?!\\.)"}]}
