a = b + "("; was incorrectly getting marked as a method because the method regex was overeager and skipped over the quotes to find the opening parentheses. I don't really like my fix for this, however, because I would prefer to raise the priority of constants rather than explicitly checking for an equals sign.
I also included built-in types and constants to the method regex to allow them to correctly be tokenized.
a = b + "(";
was incorrectly getting marked as a method because the method regex was overeager and skipped over the quotes to find the opening parentheses. I don't really like my fix for this, however, because I would prefer to raise the priority of constants rather than explicitly checking for an equals sign.I also included built-in types and constants to the method regex to allow them to correctly be tokenized.
Fixes #13, fixes #15, fixes #22
/cc @shiftkey, @aroben