diff options
author | Georg Brandl <georg@python.org> | 2015-08-08 08:03:16 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2015-08-08 08:03:16 +0200 |
commit | 2635927630b20957514e14eac40a81ca4854a30e (patch) | |
tree | bf8e589c703b33576592932f8a8676d6b6829cc6 | |
parent | 38a03a02b7a894222963f383bae6ccf3c54235d3 (diff) | |
download | pygments-2635927630b20957514e14eac40a81ca4854a30e.tar.gz |
archetype: fix regexes matching empty strings
-rw-r--r-- | pygments/lexers/archetype.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/archetype.py b/pygments/lexers/archetype.py index d4679c54..aeba1690 100644 --- a/pygments/lexers/archetype.py +++ b/pygments/lexers/archetype.py @@ -239,8 +239,8 @@ class AdlLexer(AtomsLexer): r'component_terminologies|revision_history)[ \t]*\n', Generic.Heading), (r'^(definition)[ \t]*\n', Generic.Heading, 'cadl_section'), (r'^([ \t]*|[ \t]+.*)\n', using(OdinLexer)), - (r'^([^"]*")(>[ \t]*\n)', bygroups(String.X, Punctuation)), - (r'^.*\n', String.Y), + (r'^([^"]*")(>[ \t]*\n)', bygroups(String, Punctuation)), + (r'^.*\n', String), default('#pop'), ], 'cadl_section': [ |