summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgbrandl <devnull@localhost>2006-11-01 19:19:45 +0100
committergbrandl <devnull@localhost>2006-11-01 19:19:45 +0100
commitf1e4a2718b02cd1840b9b5fd7f77d705703684d7 (patch)
treee4ac8435bc828c538c2c1593d46d596345100962
parentaa1e3486962c93755e98ade258a4165d87a3e997 (diff)
downloadpygments-f1e4a2718b02cd1840b9b5fd7f77d705703684d7.tar.gz
[svn] XML lexer fix.
-rw-r--r--TODO2
-rw-r--r--pygments/lexers/web.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/TODO b/TODO
index 59d9d771..1a5720b2 100644
--- a/TODO
+++ b/TODO
@@ -24,7 +24,7 @@ for 0.6
- dhtml: overlays toggleable by javascript
- lexers:
- * BASIC
+ * (Q)BASIC
* apacheconf
* python TBs
* haskell
diff --git a/pygments/lexers/web.py b/pygments/lexers/web.py
index 1328b4ff..7e74ccb5 100644
--- a/pygments/lexers/web.py
+++ b/pygments/lexers/web.py
@@ -328,8 +328,8 @@ class XmlLexer(RegexLexer):
('<!--', Comment, 'comment'),
(r'<\?.*?\?>', Comment.Preproc),
('<![^>]*>', Comment.Preproc),
- (r'<\s*[a-zA-Z0-9:-]+', Name.Tag, 'tag'),
- (r'<\s*/\s*[a-zA-Z0-9:-]+\s*>', Name.Tag),
+ (r'<\s*[a-zA-Z0-9:.-]+', Name.Tag, 'tag'),
+ (r'<\s*/\s*[a-zA-Z0-9:.-]+\s*>', Name.Tag),
],
'comment': [
('[^-]+', Comment),
@@ -338,7 +338,7 @@ class XmlLexer(RegexLexer):
],
'tag': [
(r'\s+', Text),
- (r'[a-zA-Z0-9_:-]+\s*=', Name.Attribute, 'attr'),
+ (r'[a-zA-Z0-9_.:-]+\s*=', Name.Attribute, 'attr'),
(r'/?\s*>', Name.Tag, '#pop'),
],
'attr': [