From 8cc766b82982c8a0c01ef67802d03953316a4576 Mon Sep 17 00:00:00 2001 From: duff Date: Wed, 26 Oct 2005 15:23:36 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=A2=20updated=20JavaScript=20regexp=20to?= =?UTF-8?q?=20use=20look-behind=20assertion=20and=20match=20escapes=20insi?= =?UTF-8?q?de=20regexp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://macromates.com/svn/Bundles/trunk/Bundles/JavaScript.tmbundle@2017 dfb7d73b-c2ec-0310-8fea-fb051d288c6d --- Syntaxes/JavaScript.plist | 37 ++++++------------------------------- 1 file changed, 6 insertions(+), 31 deletions(-) diff --git a/Syntaxes/JavaScript.plist b/Syntaxes/JavaScript.plist index 80affc0..56a1523 100644 --- a/Syntaxes/JavaScript.plist +++ b/Syntaxes/JavaScript.plist @@ -171,43 +171,18 @@ begin - (([=(]|^)\s*)(/)(?![*/]) - beginCaptures - - 1 - - name - dummy.regexp-start - - 3 - - name - string.regexp.js - - + (?<=[=(]|^)\s*/(?![*+{}?]) end - (/([igm]+)?) - endCaptures - - 1 - - name - string.regexp.js - - + /[igm]* + name + string.regexp.js patterns match - [^/]+ + \\. name - string.regexp.js - - - match - \\/ - name - string.regexp.js + constant.character.escape.js