aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2021-12-23 16:49:38 -0500
committerStephan Seitz <stephan.seitz@fau.de>2021-12-24 03:46:53 +0100
commitb99f46c735cf86abbbbc6829c1bbd8445fee919e (patch)
tree77d95bb577085576f14603efdddd47db5af6c1af
parentPHP: highlight unset (diff)
downloadnvim-treesitter-b99f46c735cf86abbbbc6829c1bbd8445fee919e.tar
nvim-treesitter-b99f46c735cf86abbbbc6829c1bbd8445fee919e.tar.gz
nvim-treesitter-b99f46c735cf86abbbbc6829c1bbd8445fee919e.tar.bz2
nvim-treesitter-b99f46c735cf86abbbbc6829c1bbd8445fee919e.tar.lz
nvim-treesitter-b99f46c735cf86abbbbc6829c1bbd8445fee919e.tar.xz
nvim-treesitter-b99f46c735cf86abbbbc6829c1bbd8445fee919e.tar.zst
nvim-treesitter-b99f46c735cf86abbbbc6829c1bbd8445fee919e.zip
Query: update highlights
ref https://github.com/nvim-treesitter/tree-sitter-query/pull/17
-rw-r--r--lockfile.json2
-rw-r--r--queries/query/highlights.scm3
2 files changed, 3 insertions, 2 deletions
diff --git a/lockfile.json b/lockfile.json
index 60fc818c3..9bcd2bbf8 100644
--- a/lockfile.json
+++ b/lockfile.json
@@ -189,7 +189,7 @@
"revision": "8e7fd7e638d4a0ec7a792ee16b19dbc6407aa810"
},
"query": {
- "revision": "9a2ccff9f672f1f3d320cf925b8e5acc89b27055"
+ "revision": "5217c6805c09f8fc00ed13d17d5fcb791437aee6"
},
"r": {
"revision": "91f587e5685f46e26f9f6e55f2e06d503f8f0fc0"
diff --git a/queries/query/highlights.scm b/queries/query/highlights.scm
index 515055449..37435a871 100644
--- a/queries/query/highlights.scm
+++ b/queries/query/highlights.scm
@@ -5,6 +5,7 @@
(predicate name: (identifier) @function)
(named_node name: (identifier) @variable)
(field_definition name: (identifier) @property)
+(negated_field "!" @operator (identifier) @property)
(comment) @comment
(quantifier) @operator
@@ -20,7 +21,7 @@
] @punctuation.bracket
":" @punctuation.delimiter
-"@" @punctuation.special
+["@" "#"] @punctuation.special
"_" @constant
((parameters (identifier) @number)