diff options
author | Tim Hatch <tim@timhatch.com> | 2014-06-04 16:10:34 -0700 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2014-06-04 16:10:34 -0700 |
commit | cd003d73b5ef77b8b00ccd240af64b724b12e1db (patch) | |
tree | ae529b286f65d239ad588d838734dcb9021b2fd2 | |
parent | 0b4eba59bf14ceb8ea4ad723171ce8dc93440dcb (diff) | |
parent | ae31a622a036cd32dd33795a6750fd7614ef2968 (diff) | |
download | pygments-cd003d73b5ef77b8b00ccd240af64b724b12e1db.tar.gz |
Merged in k0kubun/pygments-main (pull request #366)
Add SlimLexer
-rw-r--r-- | pygments/lexers/functional.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pygments/lexers/functional.py b/pygments/lexers/functional.py index 16d9bad8..efe4d240 100644 --- a/pygments/lexers/functional.py +++ b/pygments/lexers/functional.py @@ -1002,6 +1002,8 @@ class SchemeLexer(RegexLexer): # the comments - always starting with semicolon # and going to the end of the line (r';.*$', Comment.Single), + # multi-line comment + (r'#\|', Comment.Multiline, 'multiline-comment'), # whitespaces - usually not relevant (r'\s+', Text), @@ -1050,6 +1052,12 @@ class SchemeLexer(RegexLexer): (r'(\(|\))', Punctuation), (r'(\[|\])', Punctuation), ], + 'multiline-comment' : [ + (r'#\|', Comment.Multiline, '#push'), + (r'\|#', Comment.Multiline, '#pop'), + (r'[^|#]+', Comment.Multiline), + (r'[|#]', Comment.Multiline), + ], } |