Skip to content

Tokenization broken in class after nested function call with anonymous function #96

@dklilley

Description

@dklilley

See the following code:

classdef Foo
    methods
        function test()
            foo(bar(@(x) x));
        end
    end

    methods
    
    end
end

In VS Code, this is syntax highlighted in the following way:

Image

The first end is tokenized as keyword.operator.word.matlab instead of storage.type.function.end.matlab.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions