From 2a0097828d35a170e43616777c06611d881324c9 Mon Sep 17 00:00:00 2001 From: Santos Gallegos Date: Tue, 13 Jul 2021 09:09:12 -0500 Subject: [PATCH] Query: update highlight queries (#1553) This is to match https://github.com/nvim-treesitter/tree-sitter-query/pull/15 --- lockfile.json | 2 +- queries/query/highlights.scm | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lockfile.json b/lockfile.json index 07ef80dd0..2cc38c10e 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 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\ *:"))