From 7f416704b1930dada90f1e797e0729ca1333c2da Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Wed, 12 Mar 2025 17:28:11 -0400 Subject: [PATCH] Fix precedence of JSON highlight queries for keys --- runtime/queries/json/highlights.scm | 6 +++--- runtime/queries/json5/highlights.scm | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/runtime/queries/json/highlights.scm b/runtime/queries/json/highlights.scm index 69005074d..554d3b2b8 100644 --- a/runtime/queries/json/highlights.scm +++ b/runtime/queries/json/highlights.scm @@ -5,12 +5,12 @@ (null) @constant.builtin (number) @constant.numeric -(pair - key: (_) @variable.other.member) - (string) @string (escape_sequence) @constant.character.escape +(pair + key: (_) @variable.other.member) + "," @punctuation.delimiter [ "[" diff --git a/runtime/queries/json5/highlights.scm b/runtime/queries/json5/highlights.scm index 3ec4ee296..a19b30722 100644 --- a/runtime/queries/json5/highlights.scm +++ b/runtime/queries/json5/highlights.scm @@ -5,12 +5,12 @@ (null) @constant.builtin (number) @constant.numeric -(member - name: (_) @variable.other.member) - (string) @string (comment) @comment +(member + name: (_) @variable.other.member) + "," @punctuation.delimiter [ "["