Fixes #149 by making token pattern matching greedy. Otherwise, if an attribute named foo appears before another attribute named foo-bar, the latter attribute would be matched as foo, making the -bar part look like a separator after foo token.
Also fixed unit tests that were failing because invalid.pug was no longer invalid.
Fixes #149 by making token pattern matching greedy. Otherwise, if an attribute named
foo
appears before another attribute namedfoo-bar
, the latter attribute would be matched asfoo
, making the-bar
part look like a separator afterfoo
token.Also fixed unit tests that were failing because
invalid.pug
was no longer invalid.