summaryrefslogtreecommitdiff
path: root/pygments/lexers/html.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexers/html.py')
-rw-r--r--pygments/lexers/html.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pygments/lexers/html.py b/pygments/lexers/html.py
index 47c84787..bf6c97c1 100644
--- a/pygments/lexers/html.py
+++ b/pygments/lexers/html.py
@@ -137,7 +137,7 @@ class DtdLexer(RegexLexer):
'element': [
include('common'),
(r'EMPTY|ANY|#PCDATA', Keyword.Constant),
- (r'[^>\s\|()?+*,]+', Name.Tag),
+ (r'[^>\s|()?+*,]+', Name.Tag),
(r'>', Keyword, '#pop'),
],
@@ -147,21 +147,21 @@ class DtdLexer(RegexLexer):
Keyword.Constant),
(r'#REQUIRED|#IMPLIED|#FIXED', Keyword.Constant),
(r'xml:space|xml:lang', Keyword.Reserved),
- (r'[^>\s\|()?+*,]+', Name.Attribute),
+ (r'[^>\s|()?+*,]+', Name.Attribute),
(r'>', Keyword, '#pop'),
],
'entity': [
include('common'),
(r'SYSTEM|PUBLIC|NDATA', Keyword.Constant),
- (r'[^>\s\|()?+*,]+', Name.Entity),
+ (r'[^>\s|()?+*,]+', Name.Entity),
(r'>', Keyword, '#pop'),
],
'notation': [
include('common'),
(r'SYSTEM|PUBLIC', Keyword.Constant),
- (r'[^>\s\|()?+*,]+', Name.Attribute),
+ (r'[^>\s|()?+*,]+', Name.Attribute),
(r'>', Keyword, '#pop'),
],
}