Skip to content

Commit

Permalink
Merge pull request #1 from tvi/patch-1
Browse files Browse the repository at this point in the history
Support single quotes for strings
  • Loading branch information
gburiola committed Jun 15, 2018
2 parents 69ab1ea + e93e914 commit 80775c6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions jsonnet.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ contexts:

- match: '"'
push: string

- match: "\'"
push: single_string

comment:
- meta_scope: comment.block.jsonnet
Expand All @@ -109,3 +112,11 @@ contexts:
- match: \\[^"\\/bfnrtu]
scope: invalid.illegal.jsonnet

single_string:
- meta_scope: string.double.jsonnet
- match: "\'"
pop: true
- match: \\(["\\/bfnrt]|(u[0-9a-fA-F]{4}))
scope: constant.character.escape.jsonnet
- match: \\[^"\\/bfnrtu]
scope: invalid.illegal.jsonnet

0 comments on commit 80775c6

Please sign in to comment.