summaryrefslogtreecommitdiff
path: root/pygments/lexers/lisp.py
diff options
context:
space:
mode:
authorAndreas Kloeckner <inform@tiker.net>2018-06-19 14:05:00 -0500
committerAndreas Kloeckner <inform@tiker.net>2018-06-19 14:05:00 -0500
commitb9ae9547d99e4219df253ddeb61598c26b0f3032 (patch)
treebe4a6e70d019d23e2eea808a97c1e5ba62813781 /pygments/lexers/lisp.py
parent0db8e281af377923115b894703b2b8beb8f1e9d5 (diff)
downloadpygments-b9ae9547d99e4219df253ddeb61598c26b0f3032.tar.gz
Fix remaining 'DeprecationWarning: invalid escape sequence' occurrences in lexer files
Diffstat (limited to 'pygments/lexers/lisp.py')
-rw-r--r--pygments/lexers/lisp.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pygments/lexers/lisp.py b/pygments/lexers/lisp.py
index e258c347..b4c26659 100644
--- a/pygments/lexers/lisp.py
+++ b/pygments/lexers/lisp.py
@@ -139,7 +139,7 @@ class SchemeLexer(RegexLexer):
(r"(?<=#\()" + valid_name, Name.Variable),
# highlight the builtins
- ("(?<=\()(%s)" % '|'.join(re.escape(entry) + ' ' for entry in builtins),
+ (r"(?<=\()(%s)" % '|'.join(re.escape(entry) + ' ' for entry in builtins),
Name.Builtin),
# the remaining functions
@@ -321,7 +321,7 @@ class CommonLispLexer(RegexLexer):
(r'#\d+#', Operator),
# read-time comment
- (r'#+nil' + terminated + '\s*\(', Comment.Preproc, 'commented-form'),
+ (r'#+nil' + terminated + r'\s*\(', Comment.Preproc, 'commented-form'),
# read-time conditional
(r'#[+-]', Operator),
@@ -333,7 +333,7 @@ class CommonLispLexer(RegexLexer):
(r'(t|nil)' + terminated, Name.Constant),
# functions and variables
- (r'\*' + symbol + '\*', Name.Variable.Global),
+ (r'\*' + symbol + r'\*', Name.Variable.Global),
(symbol, Name.Variable),
# parentheses
@@ -2154,7 +2154,7 @@ class EmacsLispLexer(RegexLexer):
(r'(t|nil)' + terminated, Name.Constant),
# functions and variables
- (r'\*' + symbol + '\*', Name.Variable.Global),
+ (r'\*' + symbol + r'\*', Name.Variable.Global),
(symbol, Name.Variable),
# parentheses