[language-json] Add a scope to JSON keys…

…so that they can be scoped differently in themes.

The TM grammar already had the `meta.structure.key.json` scope, so
I've added it here. Further work would need to be done if we wanted JSON
keys to be highlighted differently in built-in themes.
This commit is contained in:
Andrew Dupont 2023-06-08 11:07:56 -07:00
parent 4e52093cfc
commit 1e54a680ca

View File

@ -1,6 +1,9 @@
; STRINGS
; =======
(pair
key: (string) @meta.structure.key.json)
(string
"\"" @punctuation.definition.string.begin.json
(#set! test.onlyIfFirst true))