summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Hatch <tim@timhatch.com>2014-06-04 16:10:34 -0700
committerTim Hatch <tim@timhatch.com>2014-06-04 16:10:34 -0700
commitcd003d73b5ef77b8b00ccd240af64b724b12e1db (patch)
treeae529b286f65d239ad588d838734dcb9021b2fd2
parent0b4eba59bf14ceb8ea4ad723171ce8dc93440dcb (diff)
parentae31a622a036cd32dd33795a6750fd7614ef2968 (diff)
downloadpygments-cd003d73b5ef77b8b00ccd240af64b724b12e1db.tar.gz
Merged in k0kubun/pygments-main (pull request #366)
Add SlimLexer
-rw-r--r--pygments/lexers/functional.py8
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),
+ ],
}