diff --git a/Syntaxes/Vento.sublime-syntax b/Syntaxes/Vento.sublime-syntax index 9982402..f88aeb1 100644 --- a/Syntaxes/Vento.sublime-syntax +++ b/Syntaxes/Vento.sublime-syntax @@ -94,6 +94,14 @@ contexts: - match: 'of' scope: keyword.operator.word - include: tag_opening_end + - match: 'continue\b' + scope: keyword.control.flow.continue.vento + push: + - include: tag_closing_end + - match: 'break\b' + scope: keyword.control.flow.break.vento + push: + - include: tag_closing_end - match: '(/)for\b' captures: 0: keyword.control.loop.for.end.vento diff --git a/tests/syntax_test_Vento.txt.vto b/tests/syntax_test_Vento.txt.vto index 0c91e1a..f5e546b 100644 --- a/tests/syntax_test_Vento.txt.vto +++ b/tests/syntax_test_Vento.txt.vto @@ -111,6 +111,14 @@ {{# ^^^^^^^^^^^^^^^^^ source.js.embedded.vento #}} {{# ^^ punctuation.definition.embedded.end.vento #}} + {{ continue }}{{ break }} +{{# ^^ punctuation.definition.embedded.begin.vento #}} +{{# ^^^^^^^^ keyword.control.flow.continue.vento #}} +{{# ^^ punctuation.definition.embedded.end.vento #}} +{{# ^^ punctuation.definition.embedded.begin.vento #}} +{{# ^^^^^ keyword.control.flow.break.vento #}} +{{# ^^ punctuation.definition.embedded.end.vento #}} + {{ /for }} {{# ^^ punctuation.definition.embedded.begin.vento #}} {{# ^ punctuation.section.tag.end.vento #}}