Skip to content

Commit

Permalink
• match regexps that follow a ‘return’ keyword, example:
Browse files Browse the repository at this point in the history
  return /^[a-zA-Z]([a-zA-Z0-9+-.])*:/.test(s);



git-svn-id: http://svn.textmate.org/trunk/Bundles/JavaScript.tmbundle@7067 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information
sorbits committed Apr 26, 2007
1 parent f1306d9 commit 57d492a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Syntaxes/JavaScript.plist
Expand Up @@ -611,7 +611,7 @@
</dict>
<dict>
<key>begin</key>
<string>(?&lt;=[=(:]|^)\s*(/)(?![/*+{}?])</string>
<string>(?&lt;=[=(:]|^|return)\s*(/)(?![/*+{}?])</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
Expand Down

0 comments on commit 57d492a

Please sign in to comment.