Skip to content

Commit 8c76dd3

Browse files
jcberquistwbond
authored andcommitted
[JSON] Remove prototype from object keys (#1893)
1 parent 4c1f188 commit 8c76dd3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

JavaScript/JSON.sublime-syntax

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ contexts:
101101
push:
102102
- clear_scopes: 1
103103
- meta_scope: meta.mapping.key.json string.quoted.double.json
104+
- meta_include_prototype: false
104105
- include: inside-string
105106
- match: ":"
106107
scope: punctuation.separator.mapping.key-value.json

JavaScript/tests/syntax_test_json.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,7 @@
7676

7777
"typing json": {}
7878
,,,, "another key": false,
79+
80+
"ke//y": "value"
81+
//^^^^^^^ meta.mapping.key.json string.quoted.double.json - comment
7982
}

0 commit comments

Comments
 (0)