asciidoctor / asciidoctor-vscode

AsciiDoc support for Visual Studio Code using Asciidoctor
Other
326 stars 98 forks source link

Syntax Highlighting lost after using ListingBlock inside an OpenBlock #389

Open jamesongithub opened 3 years ago

jamesongithub commented 3 years ago

Description

Syntax Highlighting lost after using ListingBlock inside an OpenBlock - syntax highlighting works until the openblock, then everything after is no longer highlighted. But the preview seems to render it fine. Note the screenshots below.

System Information

You can find the VSCode and OS information under Help -> About. To check the extension information go to the extension browser (CTRL+SHIFT+X, Mac CMD+SHIFT+X). image

AscciDoc plugin v2.8.7

To Reproduce

Steps to reproduce the issue:

Sample code

[TIP]
--
myTIP
[source,bash]
----
echo '123'
----
--

after open block

Screenshots & Files

code side image expecting [source,bash] to be highlighted here

preview side image

Additional Context

Add any other context about the problem here.

ggrossetie commented 3 years ago

Probably a parser bug in: https://github.com/asciidoctor/asciidoctor-vscode/blob/master/syntaxes/Asciidoctor.json