Tokenization broken in class after nested function call with anonymous function
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 52/100
Research direction
Start by reproducing the tokenization of the provided MATLAB class and nested anonymous-function example in the repository's regular-expression-based grammar. Trace how the first end is matched after the nested call, then verify that it receives storage.type.function.end.matlab rather than keyword.operator.word.matlab.
Written by the indexing model from the issue text.
Description
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:
The first end is tokenized as keyword.operator.word.matlab instead of storage.type.function.end.matlab.
- Dominant language
- MATLAB
- Stars
- 64
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mathworks/MATLAB-Language-grammar
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
mathworks/MATLAB-Language-grammar#58 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
mathworks/MATLAB-Language-grammar#99 · 1 comment · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
mathworks/MATLAB-Language-grammar#97 · 1 comment ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 45/100
All issues in mathworks/MATLAB-Language-grammar
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
catalystneuro/zarr-matlab#29 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
ontologyTableRowDoc2Table errors on ontologyTableRow documents without a document_id dependencyOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
VH-Lab/NDI-matlab#1016 · 1 comment ·
Maintainers usually reply within 1 day
-
Provide a docinit functionaliyPossibly taken @k-deeley claimed this 5 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day