File tree Expand file tree Collapse file tree 3 files changed +20
-16
lines changed Expand file tree Collapse file tree 3 files changed +20
-16
lines changed Original file line number Diff line number Diff line change @@ -401,17 +401,20 @@ contexts:
401401 scope : invalid.illegal.expected-colon.json
402402
403403 in-mapping-expect-comma :
404- - include : comments
405- - match : ' ,'
406- scope : punctuation.separator.mapping.pair.json
407- pop : true
408- - match : (?=})
409- pop : true
410- - match : \s*(?=")
411- scope : invalid.illegal.expected-comma.inside-mapping.json
412- pop : true
413- - match : \S
414- scope : invalid.illegal.expected-comma.inside-mapping.json
404+ - match : ' '
405+ set :
406+ - meta_scope : meta.expect-comma.sublime
407+ - include : comments
408+ - match : ' ,'
409+ scope : punctuation.separator.mapping.pair.json
410+ pop : true
411+ - match : (?=})
412+ pop : true
413+ - match : \s*(?=")
414+ scope : invalid.illegal.expected-comma.inside-mapping.json
415+ pop : true
416+ - match : \S
417+ scope : invalid.illegal.expected-comma.inside-mapping.json
415418
416419 mapping-value-meta :
417420 - clear_scopes : 1
Original file line number Diff line number Diff line change 1111// <- meta.mapping.json punctuation.section.mapping.begin.json
1212// ^ meta.mapping.json comment.line.double-slash.js punctuation.definition.comment.json
1313
14- "key" : " value" ,
14+ "key" : " value" ,
1515// ^^^^^^^^^^^^^^^^^ meta.mapping - meta.mapping meta.mapping
1616// ^^^^^ meta.mapping.key.json string.quoted.double.json - meta.mapping.json
1717// ^ punctuation.definition.string.begin.json
1818// ^ punctuation.definition.string.end.json
1919// ^ punctuation.separator.mapping.key-value.json
2020// ^^^^^^^ meta.setting-value.sublime-settings meta.mapping.value.json string.quoted.double.json
21- // ^ punctuation.separator.mapping.pair.json
21+ // ^ punctuation.separator.mapping.pair.json
2222// ^ - meta.expect-value.sublime-settings
2323// ^ meta.expect-value.sublime-settings
24+ // ^^^ meta.expect-comma.sublime
25+ // ^ - meta.expect-comma.sublime
2426
2527 "another_key" : 123 ,
2628// ^ - entity.name.other.key.sublime-settings
Original file line number Diff line number Diff line change 1-
21# match top-level keys only
32KEY_SCOPE = "entity.name.other.key.sublime-settings"
43KEY_COMPLETIONS_SCOPE = (
54 "meta.settings-mapping.sublime-settings - comment - meta.setting-value.sublime-settings"
65 " | " + KEY_SCOPE
76)
87VALUE_SCOPE = (
9- "meta.expect-value | meta.setting-value.sublime-settings"
10- " | punctuation.separator.mapping.pair.json "
8+ "meta.expect-value.sublime-settings | meta.setting-value.sublime-settings"
9+ " | meta.expect-comma.sublime "
1110)
1211
1312
You can’t perform that action at this time.
0 commit comments