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

Fix class extending imported parent · textmate/javascript.tmbundle@a9177d6 · GitHub

Commit a9177d6

Browse files
authored andcommitted
Fix class extending imported parent
Classes can extend parent classes imported from modules, with syntax like ```javascript class MyComponent extends React.Component … ``` The current grammar doesn’t allow parent class names containing periods. This change lets them.
1 parent f583963 commit a9177d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Syntaxes/JavaScript.plist‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@
637637
\s+
638638
(extends)
639639
\s+
640-
(?:\b([\p{L}\p{Nl}$_][\p{L}\p{Nl}$\p{Mn}\p{Mc}\p{Nd}\p{Pc}\x{200C}\x{200D}]*)\b(?![\(]))?
640+
(?:\b([\p{L}\p{Nl}$_][\p{L}\p{Nl}$\p{Mn}\p{Mc}\p{Nd}\p{Pc}\x{200C}\x{200D}\.]*)\b(?![\(]))?
641641
)?
642642
</string>
643643
<key>beginCaptures</key>

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL