Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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