mathworks / mathworks/MATLAB-Language-grammar
Function handle accessor not colored after 4 whitespaces, cannot be separated from anonymous function in case of line continuations
Nobody has claimed this yet.
- Dominant language
- MATLAB
- Stars
- 64
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
There can be an arbitrary number of whitespaces after the function handle.
But in the tmLanguage there is a limit on 4 whitespace characters. Also \s includes newlines, which is not allowed.
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Start at Matlab.tmbundle/Syntaxes/MATLAB.tmLanguage around line 2491 and inspect the function-handle accessor pattern. Reproduce the issue with the linked examples, then verify that arbitrary spaces are highlighted while newlines remain disallowed and line continuations are not mistaken for anonymous functions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- matlab
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100