Skip to content

Commit

Permalink
[JSON] Remove prototype from object keys (#1893)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcberquist authored and wbond committed Mar 20, 2019
1 parent 4c1f188 commit 8c76dd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions JavaScript/JSON.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ contexts:
push:
- clear_scopes: 1
- meta_scope: meta.mapping.key.json string.quoted.double.json
- meta_include_prototype: false
- include: inside-string
- match: ":"
scope: punctuation.separator.mapping.key-value.json
Expand Down
3 changes: 3 additions & 0 deletions JavaScript/tests/syntax_test_json.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,7 @@

"typing json": {}
,,,, "another key": false,

"ke//y": "value"
//^^^^^^^ meta.mapping.key.json string.quoted.double.json - comment
}

0 comments on commit 8c76dd3

Please sign in to comment.