diff options
author | Adam <adamdharrison@gmail.com> | 2021-12-05 14:46:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-05 14:46:16 -0500 |
commit | b4d44e207122130013dcbddd60635ab89ad8b692 (patch) | |
tree | a539c45c85588f74f824fe45e6f214c4acb5bbef /plugins/language_rust.lua | |
parent | 1e063c95f0bd51934cff752af653964c6aa80c0c (diff) | |
parent | 72a6478e15f22b284636fb97f219ced74a07764f (diff) | |
download | lite-xl-plugins-b4d44e207122130013dcbddd60635ab89ad8b692.tar.gz lite-xl-plugins-b4d44e207122130013dcbddd60635ab89ad8b692.zip |
Merge branch 'master' into immersive-title
Diffstat (limited to 'plugins/language_rust.lua')
-rw-r--r-- | plugins/language_rust.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/language_rust.lua b/plugins/language_rust.lua index ac25305..a8dc017 100644 --- a/plugins/language_rust.lua +++ b/plugins/language_rust.lua @@ -2,6 +2,7 @@ local syntax = require "core.syntax" syntax.add { + name = "Rust", files = { "%.rs$" }, comment = "//", patterns = { @@ -15,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" }, }, |