mirror of
https://github.com/kennethreitz-archive/kJS.tmbundle.git
synced 2026-06-05 23:50:19 +00:00
Fix JavaScript regex to not override block comments
git-svn-id: http://macromates.com/svn/Bundles/trunk/Bundles/JavaScript.tmbundle@743 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
{ name = "comment.block.js"; begin = "/\\*"; end = "\\*/"; swallow = "\\\\."; },
|
||||
{ name = "comment.line.js"; match = "//.*"; },
|
||||
|
||||
{ begin = "(([=(]|^)\\s*)(/)(?!/)"; end = "(/([igm]+)?)";
|
||||
{ begin = "(([=(]|^)\\s*)(/)(?![*/])"; end = "(/([igm]+)?)";
|
||||
beginCaptures = {
|
||||
1 = { name = "dummy.regexp-start"; };
|
||||
3 = { name = "string.regexp.js"; };
|
||||
|
||||
Reference in New Issue
Block a user