aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_rust.lua
diff options
context:
space:
mode:
authorAdam <adamdharrison@gmail.com>2021-11-23 23:36:39 -0500
committerGitHub <noreply@github.com>2021-11-23 23:36:39 -0500
commitc75f20b1eeac107bfbe3ba38f515cdf0c445dc61 (patch)
tree8318cc94bcc196769cd2280b3ec435e9ba25afbf /plugins/language_rust.lua
parent3e7571030df2404873c8320ff976fb3fb41448c9 (diff)
parentbf3c9f44882ef14b2f5c0cf7355f2377a208638e (diff)
downloadlite-xl-plugins-c75f20b1eeac107bfbe3ba38f515cdf0c445dc61.tar.gz
lite-xl-plugins-c75f20b1eeac107bfbe3ba38f515cdf0c445dc61.zip
Merge pull request #94 from JobinsJC/dev
Add syntax highlighting for Julia
Diffstat (limited to 'plugins/language_rust.lua')
-rw-r--r--plugins/language_rust.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/language_rust.lua b/plugins/language_rust.lua
index 4c8b8ff..a8dc017 100644
--- a/plugins/language_rust.lua
+++ b/plugins/language_rust.lua
@@ -16,6 +16,7 @@ syntax.add {
{ pattern = "-?%d+[%d%.eE]*f?", type = "number" },
{ pattern = "-?%.?%d+f?", type = "number" },
{ pattern = "[%+%-=/%*%^%%<>!~|&]", type = "operator" },
+ { pattern = "[%a_][%w_]*!%f[%[(]", type = "function" },
{ pattern = "[%a_][%w_]*%f[(]", type = "function" },
{ pattern = "[%a_][%w_]*", type = "symbol" },
},