diff options
author | JobinsJC <jobinsjjc1492@protonmail.com> | 2021-11-25 10:22:10 +0900 |
---|---|---|
committer | JobinsJC <jobinsjjc1492@protonmail.com> | 2021-11-25 10:22:10 +0900 |
commit | ee62ab2adb35aff979621fe144662a8583566b15 (patch) | |
tree | 1b4b792c145b244fd8bbea5b23751bef9ed88255 /plugins/language_julia.lua | |
parent | 6222c6a2d24bec13ff8f6414377c8649b452ae3e (diff) | |
download | lite-xl-plugins-ee62ab2adb35aff979621fe144662a8583566b15.tar.gz lite-xl-plugins-ee62ab2adb35aff979621fe144662a8583566b15.zip |
Updates Julia Syntax
Diffstat (limited to 'plugins/language_julia.lua')
-rw-r--r-- | plugins/language_julia.lua | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/plugins/language_julia.lua b/plugins/language_julia.lua index f9edebf..d47b87e 100644 --- a/plugins/language_julia.lua +++ b/plugins/language_julia.lua @@ -21,16 +21,16 @@ syntax.add { { pattern = "-?%.?%d+f?", type = "number" }, { pattern = "[%+%-=/%*%^%%<>!~|&%:]", type = "operator"}, { pattern = "[%a_][%w_]*%f[(]", type = "function" }, - { pattern = "@[%a_][%w_]", type = "function" }, - { pattern = "[%a_][%w_]*%.*!", type = "keyword2" }, - { pattern = { "{", "}"}, type = "string"}, + { pattern = "@[%a_][%w_]*[%a_][%w_]", type = "function" }, + { pattern = "[%a_][%w_]*%.*!", type = "keyword2" }, + { pattern = "{[%a_][%w_]*}", type = "string"}, { pattern = "[%a_][%w_]*", type = "symbol" }, }, symbols = { -- keywords ["baremodule"] = "keyword", ["begin"] = "keyword", - ["break`"] = "keyword", + ["break"] = "keyword", ["catch"] = "keyword", ["const"] = "keyword", ["continue"] = "keyword", @@ -53,6 +53,7 @@ syntax.add { ["local"] = "keyword", ["macro"] = "keyword", ["module"] = "keyword", + ["mutable"] = "keyword", ["quote"] = "keyword", ["return"] = "keyword", ["try"] = "keyword", @@ -85,10 +86,11 @@ syntax.add { ["Matrix"] = "keyword2", ["Ref"] = "keyword2", ["String"] = "keyword2", + ["Function"] = "keyword2", -- literals ["missing"] = "literal", ["true"] = "literal", ["false"] = "literal", - }, + } } |