Skip to content

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

Description

@birdybro

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions