[Zpt] CVS: Packages/TAL - nsgmllib.py:1.7

fred@digiciool.com fred@digiciool.com
Thu, 15 Mar 2001 13:19:14 -0500 (EST)


Update of /cvs-repository/Packages/TAL
In directory korak:/tmp/cvs-serv28573

Modified Files:
	nsgmllib.py 
Log Message:

Allow colons and underscores in element type names.



--- Updated File nsgmllib.py in package Packages/TAL --
--- nsgmllib.py	2001/03/15 17:10:07	1.6
+++ nsgmllib.py	2001/03/15 18:19:14	1.7
@@ -32,7 +32,7 @@
 special = re.compile('<![^<>]*>')
 commentopen = re.compile('<!--')
 commentclose = re.compile(r'--\s*>')
-tagfind = re.compile('[a-zA-Z][-.a-zA-Z0-9]*')
+tagfind = re.compile('[a-zA-Z][-.a-zA-Z0-9:_]*')
 attrfind = re.compile(
     r'\s*([a-zA-Z_][-.:a-zA-Z_0-9]*)(\s*=\s*'
     r'(\'[^\']*\'|"[^"]*"|[-a-zA-Z0-9./:;+*%?!&$\(\)_#=~]*))?')