Skip to content

Commit

Permalink
Fix nested block comments
Browse files Browse the repository at this point in the history
Fixes #4
  • Loading branch information
torkleyy committed Oct 8, 2021
1 parent 98af5b8 commit e2bec0d
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 e2bec0d

Please sign in to comment.