Skip to content

Incorrect brace syntax highlighting within switch case #52

@dklilley

Description

@dklilley

Consider the following code:

switch input
    case 0
        disp foo
    case { 1,2}
        disp bar
    case {3,4 }
        disp foobar
    case {5,6}
        disp baz
end

Because of the space after the 4, the tokenization of the {3,4 } is incorrect. This causes the following case to be tokenized incorrectly as well.
incorrectSwitchBraceColoring

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions