summaryrefslogtreecommitdiff
path: root/pygments/lexers/functional.py
diff options
context:
space:
mode:
authorTim Hatch <tim@timhatch.com>2014-06-05 08:02:57 -0700
committerTim Hatch <tim@timhatch.com>2014-06-05 08:02:57 -0700
commit0d5dbd72009cfa0714b1de96099c18bb3fbc1d6d (patch)
treea64e929f1404db52bc060181082be9cf4ee5f889 /pygments/lexers/functional.py
parent5fadb70b57a591973563a400366a88a59eb12907 (diff)
parent77734cae87a0076423dc79244e332c8e84499057 (diff)
downloadpygments-0d5dbd72009cfa0714b1de96099c18bb3fbc1d6d.tar.gz
Merged in calixte_denizet/pygments-main (pull request #367)
Add C++11 keywords
Diffstat (limited to 'pygments/lexers/functional.py')
-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),
+ ],
}