-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pls fix the damn highlight #60
Comments
The problem appears since the following commit: @patrickrgaffney Do you have an idea? Thank you! |
some grammar fixes diff --git a/Syntaxes/JavaScript.plist b/Syntaxes/JavaScript.plist
index dd46b1f..cd80a4b 100644
--- a/Syntaxes/JavaScript.plist
+++ b/Syntaxes/JavaScript.plist
@@ -48,7 +48,7 @@
</dict>
<dict>
<key>begin</key>
- <string>(?<!\.)\b(import)(?!\s*:)\b</string>
+ <string>(?<!\.|\$)\b(import)(?!\s*:)\b</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
@@ -266,7 +266,7 @@
</dict>
<dict>
<key>begin</key>
- <string>(?<!\.)\b(export)(?!\s*:)\b</string>
+ <string>(?<!\.|\$)\b(export)(?!\s*:)\b</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
@@ -628,7 +628,7 @@
<dict>
<key>begin</key>
<string>(?x)
- \b(class)(?=\s|$)
+ (?<!\.|\$)\b(class)(?=\s|$)
(?:
\s+
([\p{L}\p{Nl}$_][\p{L}\p{Nl}$\p{Mn}\p{Mc}\p{Nd}\p{Pc}\x{200C}\x{200D}]*)
@@ -825,7 +825,7 @@
</dict>
</dict>
<key>match</key>
- <string>(?<!\.)\b(yield)(?!\s*:)\b(?:\s*(\*))?</string>
+ <string>(?<!\.|\$)\b(yield)(?!\s*:)\b(?:\s*(\*))?</string>
<key>name</key>
<string>meta.control.yield.js</string>
</dict>
@@ -1239,7 +1239,7 @@
</dict>
</array>
</dict>
- <key>function-call</key>
+ <!-- key>function-call</key>
<dict>
<key>patterns</key>
<array>
@@ -1280,7 +1280,7 @@
</array>
</dict>
</array>
- </dict>
+ </dict -->
<key>function-params</key>
<dict>
<key>patterns</key>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
code example:
and this is how it looks in textmate:
The text was updated successfully, but these errors were encountered: