From adb3ed688bf344a9058581d2a51f1ef83f26804c Mon Sep 17 00:00:00 2001 From: Erik Osheim Date: Thu, 24 Sep 2009 19:55:34 -0400 Subject: [PATCH] add js comment type --HG-- branch : pmacs2 --- mode/javascript.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mode/javascript.py b/mode/javascript.py index 248c3e5..c9233be 100644 --- a/mode/javascript.py +++ b/mode/javascript.py @@ -35,7 +35,8 @@ word = chr1 + chr2 + '*' class JavascriptGrammar(Grammar): rules = [ PatternRule('comment', '//.*$'), - RegionRule('comment', '/\*', Grammar, '\*/'), + RegionRule('comment', r'/\*', Grammar, '\*/'), + RegionRule('comment', r''), PatternRule('continuation', r'\\(?= *$)'), PatternMatchRule('x', '(function)( +)(' + word + ')',