Parenthesis not tokenized correctly when there is space preceding it
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the two parenthesis-highlighting examples from the issue and inspect the grammar rules that tokenize MATLAB function-call punctuation. Compare the tokens for the examples with and without a space before the closing parenthesis; done means both cases produce punctuation.section.group.end.matlab rather than string.unquoted.matlab and meta.function-call.command.matlab.
Written by the indexing model from the issue text.
Description
When there is a space before the last parenthesis, it is not identified to be the closing paren of the cellfun() function, shown below.
The top two lines have the parens colored yellow (correct), while the bottom two lines show the red/yellow mismatch (incorrect)
The top two have the token
punctuation.section.group.end.matlab
The bottom two dont have that token, but instead have
string.unquoted.matlab
meta.function-call.command.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 52/100
All issues in mathworks/MATLAB-Language-grammar
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 5 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
mathworks/MATLAB-extension-for-vscode#354 · 1 comment · 1 reaction ·
-
curation
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
SysBioChalmers/yeast-GEM#419 ·
-
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