Skip to content

Commit

Permalink
Merge pull request #8 from ron-rs/nestc
Browse files Browse the repository at this point in the history
Fix nested block comments
  • Loading branch information
torkleyy authored Oct 8, 2021
2 parents 98af5b8 + e2bec0d commit fc1fde5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions RON.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,21 @@ contexts:
scope: punctuation.definition.comment.ron
push:
- meta_scope: comment.block.documentation.ron
- match: \*/
pop: true
- include: block_comment
- match: /\*
scope: punctuation.definition.comment.ron
push:
- meta_scope: comment.block.ron
- match: \*/
pop: true
- include: block_comment
- match: (//).*$\n?
scope: comment.line.double-slash.ron
captures:
1: punctuation.definition.comment.ron
block_comment:
- match: \*/
pop: true
- match: /\*
push: block_comment
constant:
- match: \b(true|false)\b
scope: constant.language.ron
Expand Down

0 comments on commit fc1fde5

Please sign in to comment.