diff options
author | Georg Brandl <georg@python.org> | 2018-11-28 16:42:15 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2018-11-28 16:42:15 +0100 |
commit | cd850106ed356cd56c2bf19e0eebd75c42780556 (patch) | |
tree | 44484ae1e497b8a27117ec7c0288ddeb97807167 /pygments/lexers/dylan.py | |
parent | 42bcf76904ad6ccf1005296a8d1688ebe1bc562d (diff) | |
download | pygments-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.py | 6 |
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) |