aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
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 = {