Commits

Georg Brandl committed 1a3d128

Fix a few non-Python3 compatible raw Unicode literals.

Comments (0)

Files changed (2)

pygments/lexers/compiled.py

     # 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': [

pygments/lexers/functional.py

             (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),