[SVN] Revision 1562 (Experimental)
    Allan Odgaard 
    allan at macromates.com
       
    Tue Aug 16 17:19:32 UTC 2005
    
    
  
• changed tag name pattern to: [-_.:[:alnum:]]+ (to meet jeroen half way ;) )
This is only an approximation. The spec [1] says:
   [4]   NameChar ::=   Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender
   [5]   Name     ::=   (Letter | '_' | ':') (NameChar)*
   [6]   Names    ::=   Name (#x20 Name)*
   [7]   Nmtoken  ::=   (NameChar)+
   [8]   Nmtokens ::=   Nmtoken (#x20 Nmtoken)*
And then it goes on to define unicode ranges for things like “Extender” etc.
At least with [:alnum:] we can have localized tag names. If anyone feels like making this exact, go ahead! :)
oh… and I didn't check what's actually legal for a namespace.
[1] http://www.w3.org/TR/2004/REC-xml-20040204/#NT-Name
Changed:
U   trunk/Bundles/Experimental.tmbundle/Syntaxes/XML strict.plist
    
    
More information about the textmate-dev
mailing list