diff options
Diffstat (limited to 'pygments/lexers/lisp.py')
-rw-r--r-- | pygments/lexers/lisp.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pygments/lexers/lisp.py b/pygments/lexers/lisp.py index a0a08efe..c9a82d8e 100644 --- a/pygments/lexers/lisp.py +++ b/pygments/lexers/lisp.py @@ -120,7 +120,7 @@ class SchemeLexer(RegexLexer): # strings, symbols and characters (r'"(\\\\|\\"|[^"])*"', String), (r"'" + valid_name, String.Symbol), - (r"#\\([()/'\"._!§$%& ?=+-]{1}|[a-zA-Z0-9]+)", String.Char), + (r"#\\([()/'\"._!§$%& ?=+-]|[a-zA-Z0-9]+)", String.Char), # constants (r'(#t|#f)', Name.Constant), @@ -1444,7 +1444,7 @@ class NewLispLexer(RegexLexer): (r'"(\\\\|\\"|[^"])*"', String), # braces - (r"{", String, "bracestring"), + (r'\{', String, "bracestring"), # [text] ... [/text] delimited strings (r'\[text\]*', String, "tagstring"), @@ -1468,9 +1468,9 @@ class NewLispLexer(RegexLexer): # braced strings... 'bracestring': [ - ("{", String, "#push"), - ("}", String, "#pop"), - ("[^{}]+", String), + (r'\{', String, "#push"), + (r'\}', String, "#pop"), + ('[^{}]+', String), ], # tagged [text]...[/text] delimited strings... |