Open chaitanyathengdi opened 6 years ago
This needs to be reported here: https://github.com/atom/language-shellscript. This language simply delegates to that language, so if that language grammar does not terminate, the parsing bleeds outside of the listing block.
I've found this also happens with single quoted strings. Isn't there a way to limit the highlighting to the ending ----
?
Hello!
The same thing happens when there are multiple sequential square brackets in the source block - e.g.
[attr 1 value 1 [attr2 value2...]]
-> source syntax exceeds block bounds
[attr 1 value 1 [attr2 value2...] ]
-> whitespace added between ]], source syntax does not exceed block bounds
On top of that, if the source block is contained in another block, such as an example one, the issue does not appear.
Description
I was writing code snippets in an AsciiDoc document using the bash syntax highlighter, and I noticed that the highlighting was leaking outside the
[source,bash]
block. This is evident after the "let's" in the bottom of the screenshot below:Screenshots
Syntax example
If I remove the "if" in the poem above or replace it with something else, the problem goes away:
This is problematic. I can't just remove that "if" because I need it to be there, and in any case this shouldn't happen.