diff --git a/Syntaxes/Asciidoctor.sublime-syntax b/Syntaxes/Asciidoctor.sublime-syntax index 676daef..e6b4224 100644 --- a/Syntaxes/Asciidoctor.sublime-syntax +++ b/Syntaxes/Asciidoctor.sublime-syntax @@ -34,6 +34,29 @@ contexts: - include: inline - include: characters +#******************************************************************************* +# * +# H E L P E R S * +# * +#******************************************************************************* + +# Currently used in this syntax, but useful to have around in order to improve +# source readability. + + force-pop: + - match: '(?=\S)' + pop: true + + pop-at-EOL: + - match: '(?=[\n$])' + pop: true + + consume-whitespace: + - match: '[ \t]+' + + consume-EOL: + - match: '[\n$]' + #******************************************************************************* # * # B L O C K E L E M E N T S *