In the function token_custom_token_values(),

The default case is written as "case default:" which results looking for a type named 'default' instead of catching all other token types.

Solution:
Simply remove the 'case' should do the trick.

Comments

hanoii’s picture

Status: Active » Fixed

Right, thanks, commited.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.