aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJobinsJC <jobinsjjc1492@protonmail.com>2021-11-23 12:43:45 +0900
committerJobinsJC <jobinsjjc1492@protonmail.com>2021-11-23 12:43:45 +0900
commit9ce8ec37d09f7d838ac033d382ed03564b11d5e2 (patch)
tree59c7ba35aebe5acaf92f0d931921dc792b03f8e1
parent8db94abfd4a93cb87772d5d9ebaf0a773d637879 (diff)
downloadlite-xl-plugins-9ce8ec37d09f7d838ac033d382ed03564b11d5e2.tar.gz
lite-xl-plugins-9ce8ec37d09f7d838ac033d382ed03564b11d5e2.zip
Add Macro Support
-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 ac25305..9b94d69 100644
--- a/plugins/language_rust.lua
+++ b/plugins/language_rust.lua
@@ -15,6 +15,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" },
},