summaryrefslogtreecommitdiff
path: root/pygments/lexers/dylan.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2018-11-28 16:42:15 +0100
committerGeorg Brandl <georg@python.org>2018-11-28 16:42:15 +0100
commitcd850106ed356cd56c2bf19e0eebd75c42780556 (patch)
tree44484ae1e497b8a27117ec7c0288ddeb97807167 /pygments/lexers/dylan.py
parent42bcf76904ad6ccf1005296a8d1688ebe1bc562d (diff)
downloadpygments-cd850106ed356cd56c2bf19e0eebd75c42780556.tar.gz
Fix more instances of invalid string escapes
Also, raise on warnings from Pygments only.
Diffstat (limited to 'pygments/lexers/dylan.py')
-rw-r--r--pygments/lexers/dylan.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pygments/lexers/dylan.py b/pygments/lexers/dylan.py
index f61bb60d..30318f38 100644
--- a/pygments/lexers/dylan.py
+++ b/pygments/lexers/dylan.py
@@ -179,10 +179,10 @@ class DylanLexer(RegexLexer):
(valid_name + ':', Keyword),
# class names
- (r'<' + valid_name + '>', Name.Class),
+ ('<' + valid_name + '>', Name.Class),
# define variable forms.
- (r'\*' + valid_name + '\*', Name.Variable.Global),
+ (r'\*' + valid_name + r'\*', Name.Variable.Global),
# define constant forms.
(r'\$' + valid_name, Name.Constant),
@@ -260,7 +260,7 @@ class DylanConsoleLexer(Lexer):
mimetypes = ['text/x-dylan-console']
_line_re = re.compile('.*?\n')
- _prompt_re = re.compile('\?| ')
+ _prompt_re = re.compile(r'\?| ')
def get_tokens_unprocessed(self, text):
dylexer = DylanLexer(**self.options)