diff options
author | thatch <devnull@localhost> | 2008-07-24 01:10:17 -0700 |
---|---|---|
committer | thatch <devnull@localhost> | 2008-07-24 01:10:17 -0700 |
commit | 08c4aef6c81c06ffa15e44a56b7e8ade4773fb94 (patch) | |
tree | 70934ad315a5b5aa8184baf4f222af34854c80ef | |
parent | 13258e326bba5c743c7412c863aeaec7f3b29fb3 (diff) | |
download | pygments-08c4aef6c81c06ffa15e44a56b7e8ade4773fb94.tar.gz |
Apply modified version of patch from #344 to end `#if 0` mode quicker
in the c highlighter.
-rw-r--r-- | pygments/lexers/compiled.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py index 8058317d..98cb85a3 100644 --- a/pygments/lexers/compiled.py +++ b/pygments/lexers/compiled.py @@ -123,6 +123,7 @@ class CLexer(RegexLexer): ], 'if0': [ (r'^\s*#if.*?(?<!\\)\n', Comment, '#push'), + (r'^\s*#el(?:se|if).*\n', Comment.Preproc, '#pop'), (r'^\s*#endif.*?(?<!\\)\n', Comment, '#pop'), (r'.*?\n', Comment), ] |