diff options
author | Georg Brandl <georg@python.org> | 2014-03-04 18:48:25 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-03-04 18:48:25 +0100 |
commit | ff32b37c05f9bae70427bc58212a45e039fa9966 (patch) | |
tree | dc50e01e2a8ecb72a09c94c2762660919a9af48c | |
parent | 555fa0a796cea9443588299f993c268ac144e6d5 (diff) | |
download | pygments-ff32b37c05f9bae70427bc58212a45e039fa9966.tar.gz |
Fix a few non-Python3 compatible raw Unicode literals.
-rw-r--r-- | pygments/lexers/compiled.py | 8 | ||||
-rw-r--r-- | pygments/lexers/functional.py | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py index 735c5daa..2fba337d 100644 --- a/pygments/lexers/compiled.py +++ b/pygments/lexers/compiled.py @@ -3972,10 +3972,10 @@ class Inform6Lexer(RegexLexer): # Inform 7 maps these four character classes to their ASCII # equivalents. To support Inform 6 inclusions within Inform 7, # Inform6Lexer maps them too. - _dash = ur'\-\u2010-\u2014' - _dquote = ur'"\u201c\u201d' - _squote = ur"'\u2018\u2019" - _newline = ur'\n\u0085\u2028\u2029' + _dash = u'\\-\u2010-\u2014' + _dquote = u'"\u201c\u201d' + _squote = u"'\u2018\u2019" + _newline = u'\\n\u0085\u2028\u2029' tokens = { 'root': [ diff --git a/pygments/lexers/functional.py b/pygments/lexers/functional.py index e3342497..afb0b8a0 100644 --- a/pygments/lexers/functional.py +++ b/pygments/lexers/functional.py @@ -1058,7 +1058,7 @@ class IdrisLexer(RegexLexer): (r'--(?![!#$%&*+./<=>?@\^|_~:\\]).*?$', Comment.Single), (r'{-', Comment.Multiline, 'comment'), # Identifiers - (ur'\b(%s)(?!\')\b' % '|'.join(reserved), Keyword.Reserved), + (r'\b(%s)(?!\')\b' % '|'.join(reserved), Keyword.Reserved), (r'(import|module)(\s+)', bygroups(Keyword.Reserved, Text), 'module'), (r"('')?[A-Z][\w\']*", Keyword.Type), (r'[a-z][A-Za-z0-9_\']*', Text), |