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 highlighter of source code block fails when using options #793

Open
Tracked by #686
prudhomm opened this issue Sep 24, 2023 · 1 comment
Open
Tracked by #686

syntax highlighter of source code block fails when using options #793

prudhomm opened this issue Sep 24, 2023 · 1 comment

Comments

@prudhomm
Copy link

prudhomm commented Sep 24, 2023

consider this code

[source,cpp]
----
#include <iostream> // <1>

int main() { // <2>
    std::cout << "Hello, world" << std::endl; // <3>
    return 0; // <4>
}
----

this is highlighted properly as follows in vscode:
Screenshot 2023-09-24 at 16 04 51

However if I do something like that, the highlighter does not recognize that we are in c++ anymore
Screenshot 2023-09-24 at 16 05 25

@ggrossetie
Copy link
Member

As mentioned in #686, we currently rely on a TextMate grammar but it cannot properly parse AsciiDoc.

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