Skip to content

Commit

Permalink
Fix top level arrays
Browse files Browse the repository at this point in the history
Move "#!" into extension context to fix wrong branching on top level
arrays

Fixes #10
  • Loading branch information
torkleyy committed Oct 12, 2021
1 parent 8b24181 commit 07b5dba
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions RON.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ file_extensions:
scope: source.ron
contexts:
main:
# extensions
- match: '\#\!'
- include: extension
- include: value # recurse in case of more extensions
- include: value
extension:
- match: '\['
- match: '\#\!\['
scope: punctuation.section.array.begin.ron
push:
- meta_scope: meta.structure.array.ron
Expand Down

0 comments on commit 07b5dba

Please sign in to comment.