Skip to content

Commit

Permalink
[language-json] Add a scope to JSON keys…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
savetheclocktower committed Jun 8, 2023
1 parent 4e52093 commit 1e54a68
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
; STRINGS
; =======

(pair
key: (string) @meta.structure.key.json)

(string
"\"" @punctuation.definition.string.begin.json
(#set! test.onlyIfFirst true))
Expand Down

0 comments on commit 1e54a68

Please sign in to comment.