Skip to content

UDL folding issues with CR or LF only #2873

@BigFatWizard

Description

@BigFatWizard

When defining your own User-Defined Language, Operators and Delimiters will shift the folding by one line for every Operator and Delimiter that is followed by only a CR or LF, but works just fine if it is a CRLF
As a result, not only will the folding go beyond the original codeblock, it will also shift following codeblocks by the same amount of lines.

A couple of screenshots to highlight the issue:
Bugged:
cr
lf

Working as intended:
crlf

Also "Folding in code 2 style (seperators needed)" will not highlight the keyword if its at the end of the file. Folding works still fine thought.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions