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