diff --git a/JSON/JSON.sublime-syntax b/JSON/JSON.sublime-syntax index 8517e7c17c..77ebc3e8ba 100644 --- a/JSON/JSON.sublime-syntax +++ b/JSON/JSON.sublime-syntax @@ -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 diff --git a/JSON/syntax_test_json.json b/JSON/syntax_test_json.json index c13d583547..4f4d374094 100644 --- a/JSON/syntax_test_json.json +++ b/JSON/syntax_test_json.json @@ -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