diff options
| author | Amaan Qureshi <amaanq12@gmail.com> | 2023-05-08 21:07:32 -0400 |
|---|---|---|
| committer | Amaan Qureshi <amaanq12@gmail.com> | 2023-05-09 08:33:38 -0400 |
| commit | 6df6dd262213ca5ced35a7446e5d07eebe594bef (patch) | |
| tree | 96c191b0cd534427ff13283baf5cff807e107168 /queries/rust | |
| parent | Update parsers: slint (diff) | |
| download | nvim-treesitter-6df6dd262213ca5ced35a7446e5d07eebe594bef.tar nvim-treesitter-6df6dd262213ca5ced35a7446e5d07eebe594bef.tar.gz nvim-treesitter-6df6dd262213ca5ced35a7446e5d07eebe594bef.tar.bz2 nvim-treesitter-6df6dd262213ca5ced35a7446e5d07eebe594bef.tar.lz nvim-treesitter-6df6dd262213ca5ced35a7446e5d07eebe594bef.tar.xz nvim-treesitter-6df6dd262213ca5ced35a7446e5d07eebe594bef.tar.zst nvim-treesitter-6df6dd262213ca5ced35a7446e5d07eebe594bef.zip | |
feat(rust): distinguish enum members better
Diffstat (limited to 'queries/rust')
| -rw-r--r-- | queries/rust/highlights.scm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/queries/rust/highlights.scm b/queries/rust/highlights.scm index 4554db022..c8a7170f2 100644 --- a/queries/rust/highlights.scm +++ b/queries/rust/highlights.scm @@ -86,6 +86,18 @@ name: (identifier) @constant) (#lua-match? @constant "^[A-Z][A-Z%d_]*$")) +((scoped_identifier + path: (identifier) @type + name: (identifier) @constant) + (#lua-match? @type "^[A-Z]") + (#lua-match? @constant "^[A-Z]")) + +((scoped_type_identifier + path: (identifier) @type + name: (type_identifier) @constant) + (#lua-match? @type "^[A-Z]") + (#lua-match? @constant "^[A-Z]")) + [ (crate) (super) |
