Property and function validation syntax tokenizes validation functions as keywords
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Search the MATLAB grammar's rules for property and function validation syntax, then reproduce the Account example to inspect how mustBeNumeric is tokenized. Update the relevant rule so validation functions receive the same token classification as function names, and verify the sample no longer produces storage.type highlighting.
Written by the indexing model from the issue text.
Description
Consider the following example:
classdef Account
properties
Balance (1,1) mustBeNumeric
end
end
In this situation, mustBeNumeric is tokenized as a storage.type, but it would be more accurate to tokenize it the same as a function name.
- 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
-
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 4 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
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100