summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hagelberg <phil@hagelb.org>2020-09-05 13:48:40 -0700
committerGeorg Brandl <georg@python.org>2020-09-07 07:57:03 +0200
commit7f12ac42db078d950b04eaba006252d64626ce4e (patch)
tree5f3857c0c138d63448129e603c649151cdfd4760
parentaec2a60214d8a80696916d742d9498020d2c92ae (diff)
downloadpygments-git-7f12ac42db078d950b04eaba006252d64626ce4e.tar.gz
Add support for # as lambda shorthand.
-rw-r--r--pygments/lexers/lisp.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pygments/lexers/lisp.py b/pygments/lexers/lisp.py
index 717b11ff..6f386af6 100644
--- a/pygments/lexers/lisp.py
+++ b/pygments/lexers/lisp.py
@@ -2692,5 +2692,8 @@ class FennelLexer(RegexLexer):
(r'(\(|\))', Punctuation),
(r'(\[|\])', Punctuation),
(r'(\{|\})', Punctuation),
+
+ # the # symbol is shorthand for a lambda function
+ (r'#', Punctuation),
]
}