diff options
| author | Santos Gallegos <stsewd@protonmail.com> | 2021-07-13 09:09:12 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-13 14:09:12 +0000 |
| commit | 2a0097828d35a170e43616777c06611d881324c9 (patch) | |
| tree | 50900dfd598ef81e6b3a0293e5ee03e813d5cc94 /queries/query | |
| parent | Highlights: define string.special (#1551) (diff) | |
| download | nvim-treesitter-2a0097828d35a170e43616777c06611d881324c9.tar nvim-treesitter-2a0097828d35a170e43616777c06611d881324c9.tar.gz nvim-treesitter-2a0097828d35a170e43616777c06611d881324c9.tar.bz2 nvim-treesitter-2a0097828d35a170e43616777c06611d881324c9.tar.lz nvim-treesitter-2a0097828d35a170e43616777c06611d881324c9.tar.xz nvim-treesitter-2a0097828d35a170e43616777c06611d881324c9.tar.zst nvim-treesitter-2a0097828d35a170e43616777c06611d881324c9.zip | |
Query: update highlight queries (#1553)
This is to match https://github.com/nvim-treesitter/tree-sitter-query/pull/15
Diffstat (limited to 'queries/query')
| -rw-r--r-- | queries/query/highlights.scm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/queries/query/highlights.scm b/queries/query/highlights.scm index e94d5f50b..19f2fbb01 100644 --- a/queries/query/highlights.scm +++ b/queries/query/highlights.scm @@ -1,12 +1,10 @@ (string) @string (escape_sequence) @string.escape -(capture) @type -(anonymous_node) @string +(capture (identifier) @type) +(anonymous_node (identifier) @string) (predicate name: (identifier) @function) -(named_node - name: (identifier) @variable - (field_definition - name: (identifier) @property)) +(named_node name: (identifier) @variable) +(field_definition name: (identifier) @property) (comment) @comment (quantifier) @operator @@ -22,6 +20,8 @@ ] @punctuation.bracket ":" @punctuation.delimiter +"@" @punctuation.special +"_" @constant ((program . (comment) @include) (#match? @include "^;\ +inherits\ *:")) |
