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 of INI language doesn't parse comments present on same line #2161

Closed
birdybro opened this issue Jun 13, 2022 · 0 comments · Fixed by #2217
Closed

syntax highlighting of INI language doesn't parse comments present on same line #2161

birdybro opened this issue Jun 13, 2022 · 0 comments · Fixed by #2217

Comments

@birdybro
Copy link

birdybro commented Jun 13, 2022

Redirected here by @facelessuser

facelessuser/pymdown-extensions#1733

It appears that the INI lexer isn't parsing for comments on same line with the .ini language. See examples:

https://mister-devel.github.io/MkDocs_MiSTer/developer/test/#code-syntax-highlighting-for-ini-incorrect

image

Ini example 1 and ini example 2 show that it doesn't respect the comment starting unless it's on a new line. The expected result should be something like how it looks in VSCode:

image

I got the same results regardless of browser I viewed it in and didn't know what else to test to remedy it.

Link to the syntax I'm using for reference --> https://github.com/MiSTer-devel/MkDocs_MiSTer/blob/main/docs/developer/test.md?plain=1

I'm using Material for MkDocs for our documentation.

jmzambon added a commit to jmzambon/pygments that referenced this issue Aug 26, 2022
jmzambon added a commit to jmzambon/pygments that referenced this issue Aug 27, 2022
…t on same line pygments#2161

Add also support for line continuation in values and comments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant