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 | |
| parent | 647268183f8eb164bf8c94ec1c87634f51f5c34a (diff) | |
Query: update highlight queries (#1553)
This is to match https://github.com/nvim-treesitter/tree-sitter-query/pull/15
| -rw-r--r-- | lockfile.json | 2 | ||||
| -rw-r--r-- | queries/query/highlights.scm | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/lockfile.json b/lockfile.json index 07ef80dd..2cc38c10 100644 --- a/lockfile.json +++ b/lockfile.json @@ -138,7 +138,7 @@ "revision": "8e7fd7e638d4a0ec7a792ee16b19dbc6407aa810" }, "query": { - "revision": "bc753fa4d8349bd6280f634f57bd6e7be9a3ed17" + "revision": "9a2ccff9f672f1f3d320cf925b8e5acc89b27055" }, "r": { "revision": "bcf381c61f2471137df59fe6661478b71e4a4887" diff --git a/queries/query/highlights.scm b/queries/query/highlights.scm index e94d5f50..19f2fbb0 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\ *:")) |
