FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Cleanup class match to allow use of entity.other.inherited-class · textmate/javascript.tmbundle@b6abca7 · GitHub

Commit b6abca7

Browse files
committed
Cleanup class match to allow use of entity.other.inherited-class
1 parent a50f59e commit b6abca7

1 file changed

Lines changed: 10 additions & 13 deletions

File tree

‎Syntaxes/JavaScript.plist‎

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -646,26 +646,23 @@
646646
<key>4</key>
647647
<dict>
648648
<key>name</key>
649-
<string>entity.name.type.class.js</string>
649+
<string>entity.other.inherited-class.js</string>
650650
</dict>
651651
</dict>
652652
<key>match</key>
653653
<string>(?x)
654654
\b(class)
655655
(?:
656656
\s+
657-
(?:
658-
(?:
659-
([\p{L}\p{Nl}$_][\p{L}\p{Nl}$\p{Mn}\p{Mc}\p{Nd}\p{Pc}\x{200C}\x{200D}]*) # Identifier
660-
\s+
661-
)?
662-
(extends)\s+
663-
)?
664-
([\p{L}\p{Nl}$_][\p{L}\p{Nl}$\p{Mn}\p{Mc}\p{Nd}\p{Pc}\x{200C}\x{200D}]*) # Identifier
665-
| \s*($|(?=\{)) # To match class
666-
# as its entered
667-
# or unnamed
668-
)
657+
([\p{L}\p{Nl}$_][\p{L}\p{Nl}$\p{Mn}\p{Mc}\p{Nd}\p{Pc}\x{200C}\x{200D}]*)
658+
)?
659+
(?:
660+
\s+
661+
(extends)
662+
\s+
663+
([\p{L}\p{Nl}$_][\p{L}\p{Nl}$\p{Mn}\p{Mc}\p{Nd}\p{Pc}\x{200C}\x{200D}]*)
664+
)?
665+
\s*($|(?=\{))
669666
</string>
670667
<key>name</key>
671668
<string>meta.class.js</string>

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL