diff options
| author | Amaan Qureshi <amaanq12@gmail.com> | 2023-04-19 02:25:04 -0400 |
|---|---|---|
| committer | Amaan Qureshi <amaanq12@gmail.com> | 2023-04-19 02:28:00 -0400 |
| commit | 831f37635df26864a397a5e35450eec97bfe60cd (patch) | |
| tree | b270368812db9da3ee9e4ba4fee21bb3c9a93e9d /queries/rust/highlights.scm | |
| parent | feat(markdown): configured aliases for fenced code block languages (#4659) (diff) | |
| download | nvim-treesitter-831f37635df26864a397a5e35450eec97bfe60cd.tar nvim-treesitter-831f37635df26864a397a5e35450eec97bfe60cd.tar.gz nvim-treesitter-831f37635df26864a397a5e35450eec97bfe60cd.tar.bz2 nvim-treesitter-831f37635df26864a397a5e35450eec97bfe60cd.tar.lz nvim-treesitter-831f37635df26864a397a5e35450eec97bfe60cd.tar.xz nvim-treesitter-831f37635df26864a397a5e35450eec97bfe60cd.tar.zst nvim-treesitter-831f37635df26864a397a5e35450eec97bfe60cd.zip | |
feat(rust): move some keywords & operators to where they belong
Diffstat (limited to 'queries/rust/highlights.scm')
| -rw-r--r-- | queries/rust/highlights.scm | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/queries/rust/highlights.scm b/queries/rust/highlights.scm index 6c4491a02..5eb6d97b8 100644 --- a/queries/rust/highlights.scm +++ b/queries/rust/highlights.scm @@ -185,12 +185,9 @@ [ "default" - "dyn" "enum" - "extern" "impl" "let" - "match" "move" "pub" "struct" @@ -207,18 +204,21 @@ ] @keyword.coroutine [ - "ref" + "ref" (mutable_specifier) ] @type.qualifier [ - "const" - "static" + "const" + "static" + "dyn" + "extern" ] @storageclass (lifetime ["'" (identifier)] @storageclass.lifetime) "fn" @keyword.function + [ "return" "yield" @@ -233,8 +233,9 @@ (visibility_modifier [(crate) (super) (self)] @namespace) [ - "else" "if" + "else" + "match" ] @conditional [ @@ -246,8 +247,7 @@ ] @repeat "for" @keyword -(for_expression - "for" @repeat) +(for_expression "for" @repeat) ;;; Operators & Punctuation @@ -265,7 +265,6 @@ "+=" "-" "-=" - "->" ".." "..=" "/" @@ -276,7 +275,6 @@ "<=" "=" "==" - "=>" ">" ">=" ">>" @@ -297,7 +295,7 @@ (bracketed_type ["<" ">"] @punctuation.bracket) (for_lifetimes ["<" ">"] @punctuation.bracket) -["," "." ":" "::" ";"] @punctuation.delimiter +["," "." ":" "::" ";" "->" "=>"] @punctuation.delimiter (attribute_item "#" @punctuation.special) (inner_attribute_item ["!" "#"] @punctuation.special) |
