diff options
author | thatch <devnull@localhost> | 2009-01-03 13:10:21 -0600 |
---|---|---|
committer | thatch <devnull@localhost> | 2009-01-03 13:10:21 -0600 |
commit | 7089ff8eff48028ccdc77d63862c10de5ec95d62 (patch) | |
tree | c48507bdaa23ee2392d362e3544a6e17fa4e9954 | |
parent | 2d1547744509fe069f83bc47fcc8af182616ee04 (diff) | |
download | pygments-7089ff8eff48028ccdc77d63862c10de5ec95d62.tar.gz |
Hash marks need to be escaped, otherwise we get paren nesting errors.
-rw-r--r-- | pygments/lexers/templates.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/templates.py b/pygments/lexers/templates.py index 125ecd31..42cabd5d 100644 --- a/pygments/lexers/templates.py +++ b/pygments/lexers/templates.py @@ -427,8 +427,8 @@ class MakoLexer(RegexLexer): (r'''(?sx) (.+?) # anything, followed by: (?: - (?<=\n)(?=%|##) | # an eval or comment line - (?=#\*) | # multiline comment + (?<=\n)(?=%|\#\#) |# an eval or comment line + (?=\#\*) | # multiline comment (?=</?%) | # a python block # call start or end (?=\$\{) | # a substitution |