Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting broken if a variable is used with bash source #875

Open
Tracked by #686
feliksik opened this issue Apr 25, 2024 · 0 comments
Open
Tracked by #686

Syntax highlighting broken if a variable is used with bash source #875

feliksik opened this issue Apr 25, 2024 · 0 comments

Comments

@feliksik
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants