diff options
author | JobinsJC <jobinsjjc1492@protonmail.com> | 2021-11-23 12:43:45 +0900 |
---|---|---|
committer | JobinsJC <jobinsjjc1492@protonmail.com> | 2021-11-23 12:43:45 +0900 |
commit | 9ce8ec37d09f7d838ac033d382ed03564b11d5e2 (patch) | |
tree | 59c7ba35aebe5acaf92f0d931921dc792b03f8e1 | |
parent | 8db94abfd4a93cb87772d5d9ebaf0a773d637879 (diff) | |
download | lite-xl-plugins-9ce8ec37d09f7d838ac033d382ed03564b11d5e2.tar.gz lite-xl-plugins-9ce8ec37d09f7d838ac033d382ed03564b11d5e2.zip |
Add Macro Support
-rw-r--r-- | plugins/language_rust.lua | 1 |
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" }, }, |