diff options
author | Tim Hatch <tim@timhatch.com> | 2012-03-09 12:06:35 -0800 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2012-03-09 12:06:35 -0800 |
commit | 652451c0fc435d8719e5e13e5a3a2712b8488fb4 (patch) | |
tree | a3a136ea556f3859ce1901308388e6da4521e588 | |
parent | 70436b2643b47cd450d13a6ec13e58545ae0eb11 (diff) | |
download | pygments-652451c0fc435d8719e5e13e5a3a2712b8488fb4.tar.gz |
Remove trailing whitespace from DTD lexer
---
pygments/lexers/web.py | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
-rw-r--r-- | pygments/lexers/web.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pygments/lexers/web.py b/pygments/lexers/web.py index 6dc8c9b1..41d9bd48 100644 --- a/pygments/lexers/web.py +++ b/pygments/lexers/web.py @@ -912,18 +912,18 @@ class DtdLexer(RegexLexer): 'root': [ include('common'), - (r'(<!ELEMENT)(\s+)([^\s]+)', + (r'(<!ELEMENT)(\s+)([^\s]+)', bygroups(Keyword, Text, Name.Tag), 'element'), - (r'(<!ATTLIST)(\s+)([^\s]+)', + (r'(<!ATTLIST)(\s+)([^\s]+)', bygroups(Keyword, Text, Name.Tag), 'attlist'), - (r'(<!ENTITY)(\s+)([^\s]+)', + (r'(<!ENTITY)(\s+)([^\s]+)', bygroups(Keyword, Text, Name.Entity), 'entity'), - (r'(<!NOTATION)(\s+)([^\s]+)', + (r'(<!NOTATION)(\s+)([^\s]+)', bygroups(Keyword, Text, Name.Tag), 'notation'), (r'(<!\[)([^\[\s]+)(\s*)(\[)', # conditional sections bygroups(Keyword, Name.Entity, Text, Keyword)), - (r'(<!DOCTYPE)(\s+)([^>\s]+)', + (r'(<!DOCTYPE)(\s+)([^>\s]+)', bygroups(Keyword, Text, Name.Tag)), (r'PUBLIC|SYSTEM', Keyword.Constant), (r'[\[\]>]', Keyword), @@ -937,7 +937,7 @@ class DtdLexer(RegexLexer): (r'"[^"]*"', String.Double), (r'\'[^\']*\'', String.Single), ], - + 'comment': [ ('[^-]+', Comment), ('-->', Comment, '#pop'), @@ -966,7 +966,7 @@ class DtdLexer(RegexLexer): (r'[^>\s\|()?+*,]+', Name.Entity), (r'>', Keyword, '#pop'), ], - + 'notation': [ include('common'), (r'SYSTEM|PUBLIC', Keyword.Constant), |