Skip to content

Commit

Permalink
Initial support for raw strings
Browse files Browse the repository at this point in the history
  • Loading branch information
torkleyy committed Oct 8, 2021
1 parent fc1fde5 commit 8b24181
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 8b24181

Please sign in to comment.