diff options
author | Andreas Kloeckner <inform@tiker.net> | 2018-06-19 14:05:00 -0500 |
---|---|---|
committer | Andreas Kloeckner <inform@tiker.net> | 2018-06-19 14:05:00 -0500 |
commit | 6de7d2347cbd833ba562ff9fb75deed5f9777316 (patch) | |
tree | 11b52dd863b8719031d9ac5c93ee496bea16795d /pygments/lexers/actionscript.py | |
parent | 1b966038502c0b386a6645d4b5125f623d0947bb (diff) | |
download | pygments-git-6de7d2347cbd833ba562ff9fb75deed5f9777316.tar.gz |
Fix remaining 'DeprecationWarning: invalid escape sequence' occurrences in lexer files
Diffstat (limited to 'pygments/lexers/actionscript.py')
-rw-r--r-- | pygments/lexers/actionscript.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/actionscript.py b/pygments/lexers/actionscript.py index 84607e68..fc3b90cd 100644 --- a/pygments/lexers/actionscript.py +++ b/pygments/lexers/actionscript.py @@ -125,7 +125,7 @@ class ActionScript3Lexer(RegexLexer): 'text/actionscript3'] identifier = r'[$a-zA-Z_]\w*' - typeidentifier = identifier + '(?:\.<\w+>)?' + typeidentifier = identifier + r'(?:\.<\w+>)?' flags = re.DOTALL | re.MULTILINE tokens = { @@ -232,7 +232,7 @@ class MxmlLexer(RegexLexer): (r'/?\s*>', Name.Tag, '#pop'), ], 'attr': [ - ('\s+', Text), + (r'\s+', Text), ('".*?"', String, '#pop'), ("'.*?'", String, '#pop'), (r'[^\s>]+', String, '#pop'), |