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

Syntax highlighting broken if a variable is used with bash source

Open feliksik opened this issue 10 months ago • 0 comments

The following breaks syntax highlighting:

= bug

== Header 1

:x: foo

.check version on Windows
[source, subs="attributes"]
----
{x}
----

== Highlighting is still ok
// syntax highlighting is still fine

.check version on Windows
[source, bash, subs="attributes"]
----
{x}
----

== Syntax highlighting is now broken

It's caused by the {x} string in combination with the 'bash' argument to the source block. 

It looks like this:

image

If I don't use 'bash' but 'python' as language, it does work as expected...

feliksik avatar Apr 25 '24 08:04 feliksik