summaryrefslogtreecommitdiff
path: root/pygments/lexers/lisp.py
diff options
context:
space:
mode:
authorJean Abou Samra <jean@abou-samra.fr>2022-02-01 19:22:19 +0100
committerGeorg Brandl <georg@python.org>2022-02-08 16:36:49 +0100
commit28602b776151bcbe082e014e35ec3c24529020a8 (patch)
tree81e8ef22f059a051bc77db797b4059131073985f /pygments/lexers/lisp.py
parent801d2b24ddc31bfdc6da698f9befc992cf943193 (diff)
downloadpygments-git-28602b776151bcbe082e014e35ec3c24529020a8.tar.gz
Scheme: recognize #: keywords (used for named function arguments)
Highlighting as Keyword.Declaration is consistent with the RacketLexer.
Diffstat (limited to 'pygments/lexers/lisp.py')
-rw-r--r--pygments/lexers/lisp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pygments/lexers/lisp.py b/pygments/lexers/lisp.py
index 975fa186..a23fc6a6 100644
--- a/pygments/lexers/lisp.py
+++ b/pygments/lexers/lisp.py
@@ -222,9 +222,10 @@ class SchemeLexer(RegexLexer):
(number_rules[10], decimal_cb, '#pop'),
(number_rules[16], Number.Hex, '#pop'),
- # strings, symbols and characters
+ # strings, symbols, keywords and characters
(r'"', String, 'string'),
(r"'" + valid_name, String.Symbol, "#pop"),
+ (r'#:' + valid_name, Keyword.Declaration, '#pop'),
(r"#\\([()/'\"._!ยง$%& ?=+-]|[a-zA-Z0-9]+)", String.Char, "#pop"),
# constants