Class names with hyphens should be supported like this:
%span.hello-world
The fix is easy... In this part of the HamlParser class:
// Match classes
if (preg_match_all('/\\'.self::TOKEN_CLASS.'([a-zA-Z0-9_]*)/', $sToParse,
$aMatches))
Just add hyphen to end of the RegEx character class:
// Match classes
if (preg_match_all('/\\'.self::TOKEN_CLASS.'([a-zA-Z0-9_-]*)/', $sToParse,
$aMatches))
Original issue reported on code.google.com by zekevic...@gmail.com on 10 Oct 2013 at 10:25
Original issue reported on code.google.com by
zekevic...@gmail.com
on 10 Oct 2013 at 10:25