Merge pull request #34 from luveti/lua-goto

Added goto to lua language plugin
This commit is contained in:
rxi 2020-04-21 22:52:39 +01:00 committed by GitHub
commit de9bdc43fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,7 @@ syntax.add {
{ pattern = "[%+%-=/%*%^%%#<>]", type = "operator" },
{ pattern = "[%a_][%w_]*%s*%f[(\"{]", type = "function" },
{ pattern = "[%a_][%w_]*", type = "symbol" },
{ pattern = "::[%a_][%w_]*::", type = "literal" },
},
symbols = {
["if"] = "keyword",
@ -37,6 +38,7 @@ syntax.add {
["not"] = "keyword",
["and"] = "keyword",
["or"] = "keyword",
["goto"] = "keyword",
["self"] = "keyword2",
["true"] = "literal",
["false"] = "literal",