Skip to content

Commit 92919c6

Browse files
committed
fix issue with functions in validation
1 parent 91205a3 commit 92919c6

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Matlab.tmbundle/Syntaxes/MATLAB.tmLanguage

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2792,6 +2792,10 @@
27922792
</dict>
27932793
<key>patterns</key>
27942794
<array>
2795+
<dict>
2796+
<key>include</key>
2797+
<string>#function_call</string>
2798+
</dict>
27952799
<dict>
27962800
<key>include</key>
27972801
<string>#braced_validator_list</string>

test/t08PropertyValidation.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@
6161
% ^ keyword.operator.assignment.matlab
6262
% ^^ constant.numeric.matlab
6363
% ^ punctuation.terminator.semicolon.matlab
64+
PropFcnArgs {mustBeGreaterThan(PropFcnArgs, 2)}
65+
% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.function-call.parens.matlab
66+
6467
% Ending commentary
6568
end
6669
end

0 commit comments

Comments
 (0)