aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorNightwing <jobinsjjc1492@protonmail.com>2021-12-03 23:07:28 +0900
committerNightwing <jobinsjjc1492@protonmail.com>2021-12-03 23:07:28 +0900
commit9d91e39bf3711f14c5badb300d4ba8a4c24117c0 (patch)
tree57a95326abd088cd2aae440de5ec2f9704eceb47 /plugins
parent6bdc51987ec0d08bb7664a00089dc165ea742e5d (diff)
downloadlite-xl-plugins-9d91e39bf3711f14c5badb300d4ba8a4c24117c0.tar.gz
lite-xl-plugins-9d91e39bf3711f14c5badb300d4ba8a4c24117c0.zip
Finally
Diffstat (limited to 'plugins')
-rw-r--r--plugins/language_julia.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/language_julia.lua b/plugins/language_julia.lua
index ecdbdc0..e62a9b2 100644
--- a/plugins/language_julia.lua
+++ b/plugins/language_julia.lua
@@ -11,6 +11,11 @@ syntax.add {
patterns = {
{pattern = {"#=", "=#"}, type="comment" },
{pattern = "#.*$", type="comment" },
+ { pattern = { 'icxx"""', '"""' }, type = "string", syntax = ".cpp" },
+ { pattern = { 'cxx"""', '"""' }, type = "string", syntax = ".cpp" },
+ { pattern = { 'py"""', '"""' }, type = "string", syntax = ".py" },
+ { pattern = { 'js"""', '"""' }, type = "string", syntax = ".js" },
+ { pattern = { 'md"""', '"""' }, type = "string", syntax = ".md" },
{ pattern = "%d%w*[%.-+*//]", type = "number" },
{ pattern = "0[oO_][0-7]+", type = "number" },
{ pattern = "-?0x[%x_]+", type = "number" },
@@ -27,7 +32,7 @@ syntax.add {
{ pattern = "'\\.*'", type = "string" },
{ pattern = "'.'", type = "string" },
{ pattern = "[%a_][%w_]*%f[(]", type = "function" },
- { pattern = ".*!", type="function"},
+ { pattern = "%g*!", type="function"},
{ pattern = "[%a_][%w_]*", type = "symbol" },
},
symbols = {