From 07b5dbab0661a2e6805d72e89f02d855f69f216b Mon Sep 17 00:00:00 2001 From: Thomas Schaller Date: Tue, 12 Oct 2021 18:04:14 +0200 Subject: [PATCH] Fix top level arrays Move "#!" into extension context to fix wrong branching on top level arrays Fixes #10 --- RON.sublime-syntax | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/RON.sublime-syntax b/RON.sublime-syntax index ffd343e..77457a4 100644 --- a/RON.sublime-syntax +++ b/RON.sublime-syntax @@ -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