Skip to content

Commit 4278a23

Browse files
committed
convert classdef to allow for metaclass on rhs of assign
1 parent 1e95d73 commit 4278a23

File tree

1 file changed

+9
-34
lines changed

1 file changed

+9
-34
lines changed

Matlab.tmbundle/Syntaxes/MATLAB.tmLanguage

Lines changed: 9 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -831,41 +831,16 @@
831831
<string>true|false</string>
832832
</dict>
833833
<dict>
834+
<key>comment</key>
835+
<string>Metadata query for class properties</string>
834836
<key>name</key>
835-
<string>meta.metaclass.matlab</string>
836-
<key>begin</key>
837-
<string>(\?)</string>
838-
<key>beginCaptures</key>
839-
<dict>
840-
<key>1</key>
841-
<dict>
842-
<key>name</key>
843-
<string>keyword.operator.other.question.matlab</string>
844-
</dict>
845-
</dict>
846-
<key>end</key>
847-
<string>(?=\)|,)</string>
848-
<key>patterns</key>
849-
<array>
850-
<dict>
851-
<key>name</key>
852-
<string>entity.other.class.matlab</string>
853-
<key>match</key>
854-
<string>(?&lt;=[\s.&lt;])[a-zA-Z][a-zA-Z0-9_]*(?=\s|,|\))</string>
855-
</dict>
856-
<dict>
857-
<key>name</key>
858-
<string>entity.name.namespace.matlab</string>
859-
<key>match</key>
860-
<string>[a-zA-Z][a-zA-Z0-9_]*</string>
861-
</dict>
862-
<dict>
863-
<key>name</key>
864-
<string>punctuation.accessor.dot.matlab</string>
865-
<key>match</key>
866-
<string>\.</string>
867-
</dict>
868-
</array>
837+
<string>keyword.operator.other.question.matlab</string>
838+
<key>match</key>
839+
<string>(?&lt;!\w)\?(?=\w)</string>
840+
</dict>
841+
<dict>
842+
<key>include</key>
843+
<string>#metaclass_literal</string>
869844
</dict>
870845
<dict>
871846
<key>include</key>

0 commit comments

Comments
 (0)