Skip to content

Commit

Permalink
[JSON] Use detailed scope for true/false
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Cherng <[email protected]>
  • Loading branch information
jfcherng committed Jul 13, 2024
1 parent 8a8736f commit 8635e3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions JSON/JSON.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,10 @@ contexts:
###[ LITERALS ]################################################################

constants:
- match: \b(?:false|true)\b
scope: constant.language.boolean.json
- match: \bfalse\b
scope: constant.language.boolean.false.json
- match: \btrue\b
scope: constant.language.boolean.true.json
- match: \bnull\b
scope: constant.language.null.json

Expand Down
2 changes: 1 addition & 1 deletion JSON/syntax_test_json.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"bool": false,
//^^^^^^ meta.mapping.key.json
//^^^^^^^^^^^^^^ - meta.mapping meta.mapping
// ^^^^^ constant.language.boolean.json
// ^^^^^ constant.language.boolean.false.json

"null": null,
//^^^^^^ meta.mapping.key.json
Expand Down

0 comments on commit 8635e3b

Please sign in to comment.