Merge pull request #34 from luveti/lua-goto
Added goto to lua language plugin
This commit is contained in:
commit
de9bdc43fb
|
@ -17,6 +17,7 @@ syntax.add {
|
||||||
{ pattern = "[%+%-=/%*%^%%#<>]", type = "operator" },
|
{ pattern = "[%+%-=/%*%^%%#<>]", type = "operator" },
|
||||||
{ pattern = "[%a_][%w_]*%s*%f[(\"{]", type = "function" },
|
{ pattern = "[%a_][%w_]*%s*%f[(\"{]", type = "function" },
|
||||||
{ pattern = "[%a_][%w_]*", type = "symbol" },
|
{ pattern = "[%a_][%w_]*", type = "symbol" },
|
||||||
|
{ pattern = "::[%a_][%w_]*::", type = "literal" },
|
||||||
},
|
},
|
||||||
symbols = {
|
symbols = {
|
||||||
["if"] = "keyword",
|
["if"] = "keyword",
|
||||||
|
@ -37,6 +38,7 @@ syntax.add {
|
||||||
["not"] = "keyword",
|
["not"] = "keyword",
|
||||||
["and"] = "keyword",
|
["and"] = "keyword",
|
||||||
["or"] = "keyword",
|
["or"] = "keyword",
|
||||||
|
["goto"] = "keyword",
|
||||||
["self"] = "keyword2",
|
["self"] = "keyword2",
|
||||||
["true"] = "literal",
|
["true"] = "literal",
|
||||||
["false"] = "literal",
|
["false"] = "literal",
|
||||||
|
|
Loading…
Reference in a new issue