Skip to content

[Bug] Syntax highlighter detects block comments inside of strings #2142

@Ecconia

Description

@Ecconia

When a normal string contains /* the syntax highlighter will mark everything including all following lines as a block comment.

Image

This applies to at least C# code with .cs file ending.

This should not be the case, as comments usually cannot start inside of strings (exceptions exist). In general all comment detection is not active inside of normal double-quoted strings.

Version: 2026.04 (and probably all previous versions).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions