tajmone / ST4-Asciidoctor

AsciiDoc Package for SublimeText 4
https://tajmone.github.io/ST4-Asciidoctor
MIT License
11 stars 6 forks source link

Curly DQuotes and Inline Code Conflicts #54

Open tajmone opened 1 month ago

tajmone commented 1 month ago

There's a problem with how curly quotes are currently handled, and this examples breaks syntax highlighting:

Some path `"C:\home\"` another path `"C:\path"` and some code `xxx`.

The problem here is that while Asciidoctor correctly treats the backticks surrounding the quoted paths as inline code, the syntax treats them as curly-quotes ending and starting markers — i.e. the latter starts a scope that leads the rest of the line to be mismatched, and the last inline code is skipped, with the problem that the "pseudo-string" scopes meta.curlyquoteinner.double.asciidoc and markup.curlyquote.double.asciidoc never pop-out, and keep waiting for a mismatched closing delimiter.

Possible solutions: