parent
4643bf3d61
commit
adb3ed688b
|
@ -35,7 +35,8 @@ word = chr1 + chr2 + '*'
|
|||
class JavascriptGrammar(Grammar):
|
||||
rules = [
|
||||
PatternRule('comment', '//.*$'),
|
||||
RegionRule('comment', '/\*', Grammar, '\*/'),
|
||||
RegionRule('comment', r'/\*', Grammar, '\*/'),
|
||||
RegionRule('comment', r'<!--', Grammar, '-->'),
|
||||
PatternRule('continuation', r'\\(?= *$)'),
|
||||
|
||||
PatternMatchRule('x', '(function)( +)(' + word + ')',
|
||||
|
|
Loading…
Reference in New Issue