Skip to content

Commit d917df6

Browse files
committed
better classedf
1 parent f12f1af commit d917df6

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Matlab.tmbundle/Syntaxes/MATLAB.tmLanguage

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@
784784
<array>
785785
<dict>
786786
<key>begin</key>
787-
<string>\G(\([^)]*\))?\s*</string>
787+
<string>\G\s*(\((.|\s)*\))?(?=\s* \w+)\s*(\w+)\s*</string>
788788
<key>beginCaptures</key>
789789
<dict>
790790
<key>1</key>
@@ -854,12 +854,19 @@
854854
</dict>
855855
</array>
856856
</dict>
857+
<key>3</key>
858+
<dict>
859+
<key>comment</key>
860+
<string>Class name</string>
861+
<key>name</key>
862+
<string>entity.name.type.class.matlab</string>
863+
</dict>
857864
</dict>
858865
<key>patterns</key>
859866
<array>
860867
<dict>
861868
<key>begin</key>
862-
<string>\G\s*([a-zA-Z][a-zA-Z0-9_]*)</string>
869+
<string>\G</string>
863870
<key>beginCaptures</key>
864871
<dict>
865872
<key>1</key>

0 commit comments

Comments
 (0)