asciidoctor-vscode icon indicating copy to clipboard operation
asciidoctor-vscode copied to clipboard

Unterminated #ifndef causes syntax highlighting to go wrong outside the source block

Open JamesH65 opened this issue 2 years ago • 0 comments
trafficstars

If I have the following or similar, where the #ifndef is not terminated:

[source,c]
----
#ifndef HARDWARE_REGS_DEFINED
#define HARDWARE_REGS_DEFINED
----

Syntax highlighting in the rest of the file goes very wrong. Especially noticeable when I used ' (single quote, e.g. "it's") which causes large chunks of text to be incorrectly highlighted.

JamesH65 avatar Apr 21 '23 10:04 JamesH65