Skip to content

Commit

Permalink
convert classdef to allow for metaclass on rhs of assign
Browse files Browse the repository at this point in the history
  • Loading branch information
apozharski committed Jul 22, 2024
1 parent 1e95d73 commit 4278a23
Showing 1 changed file with 9 additions and 34 deletions.
43 changes: 9 additions & 34 deletions Matlab.tmbundle/Syntaxes/MATLAB.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -831,41 +831,16 @@
<string>true|false</string>
</dict>
<dict>
<key>comment</key>
<string>Metadata query for class properties</string>
<key>name</key>
<string>meta.metaclass.matlab</string>
<key>begin</key>
<string>(\?)</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.operator.other.question.matlab</string>
</dict>
</dict>
<key>end</key>
<string>(?=\)|,)</string>
<key>patterns</key>
<array>
<dict>
<key>name</key>
<string>entity.other.class.matlab</string>
<key>match</key>
<string>(?&lt;=[\s.&lt;])[a-zA-Z][a-zA-Z0-9_]*(?=\s|,|\))</string>
</dict>
<dict>
<key>name</key>
<string>entity.name.namespace.matlab</string>
<key>match</key>
<string>[a-zA-Z][a-zA-Z0-9_]*</string>
</dict>
<dict>
<key>name</key>
<string>punctuation.accessor.dot.matlab</string>
<key>match</key>
<string>\.</string>
</dict>
</array>
<string>keyword.operator.other.question.matlab</string>
<key>match</key>
<string>(?&lt;!\w)\?(?=\w)</string>
</dict>
<dict>
<key>include</key>
<string>#metaclass_literal</string>
</dict>
<dict>
<key>include</key>
Expand Down

0 comments on commit 4278a23

Please sign in to comment.