Feb 15
HTML Recipe: Name Spaces
Here is the last version of the XHTML recipe, which now supports name spaces (thanks to Manfred for pointing out the issue)
/*
===============================================================================
Chili Recipe for the XHTML language
...............................................................................
Version: 1.5c - 2007/02 - http://noteslog.com/chili/
-------------------------------------------------------------------------------
Copyright (c) 2006 Andrea Ercolino
http://www.opensource.org/licenses/mit-license.php
===============================================================================
*/
{
steps: {
mlcom : { exp: /\<!--(?:.|\n)*?--\>/ }
, aname : { exp: /\s+?[\w-]+:?\w+(?=\s*=)/ }
, tag : { exp: /(?:\<\!?[\w:]+)|(?:\>)|(?:\<\/[\w:]+\>)|(?:\/\>)/ }
, avalue: { exp: /([\"\'])(?:(?:[^\1\\]*?(?:\1\1|\\.))*[^\1\\]*?)\1/ }
, entity: { exp: /&[\w#]+?;/ }
}
}
