Skip to content

Commit

Permalink
Merge pull request #9 from ron-rs/raws
Browse files Browse the repository at this point in the history
Initial support for raw strings
  • Loading branch information
kvark authored Oct 11, 2021
2 parents f64cbbf + 8b24181 commit 3312187
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions RON.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,23 @@ contexts:
scope: constant.character.escape.ron
- match: \\.
scope: invalid.illegal.unrecognized-string-escape.ron
raw_string:
- match: 'r'
- include: raw_string_inner
raw_string_inner:
- match: '#'
push:
- match: '"'
scope: punctuation.definition.string.begin.ron
- meta_scope: string.quoted.double.ron
- match: '"'
scope: punctuation.definition.string.end.ron
- match: '#'
pop: true
value:
- include: constant
- include: number
- include: raw_string
- include: string
- include: array
- include: dictionary
Expand Down

0 comments on commit 3312187

Please sign in to comment.