diff options
Diffstat (limited to 'plugins')
-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" }, }, |