Don't match a single slash (/) as a regex literal unless there's another one on the same line. Force Regex literals to end at the end of the line. This helps solve some performance issues while coding. Thanks Daniel Stockman

git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@9128 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
This commit is contained in:
subtlegradient
2008-03-16 03:24:13 +00:00
parent d72e54c64d
commit 151f7a83eb
+2 -2
View File
@@ -575,7 +575,7 @@
</dict>
<dict>
<key>begin</key>
<string>(?&lt;=[=(:]|^|return)\s*(/)(?![/*+{}?])</string>
<string>(?&lt;=[=(:]|^|return)\s*(/)(?![/*+{}?]|$)</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
@@ -585,7 +585,7 @@
</dict>
</dict>
<key>end</key>
<string>(/)[igm]*</string>
<string>(/)[igm]*|$</string>
<key>endCaptures</key>
<dict>
<key>1</key>