Skip to content

Commit

Permalink
Fix Broken Example Blocks
Browse files Browse the repository at this point in the history
This commit fixes a bug in example blocks where curly quotes would
result in prematurely popping-out of the example context, causing the
closing block delimiter to be treated as a new opening example block,
jeopardizing syntax highlighting of the rest of the document.

This was the most annoying bug in the package, leading to documents
highlighting and scoping frequently breaking up.
  • Loading branch information
tajmone committed May 10, 2022
1 parent 77f2e33 commit c15bf96
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Syntaxes/Asciidoctor.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -951,12 +951,10 @@ contexts:
- match: (["']`)(`(?!`))?
captures:
1: punctuation.definition.string.begin.asciidoc
pop: true
# False positive: closing typographic quotes:
- match: (`["'])
captures:
1: punctuation.definition.string.end.asciidoc
pop: true
# Capture real monospaced formatting:
- match: |
(?x)
Expand Down

0 comments on commit c15bf96

Please sign in to comment.