atom / language-csharp

C# language support for Atom
Other
62 stars 52 forks source link

Don't allow methods to start with = #39

Closed winstliu closed 9 years ago

winstliu commented 9 years ago

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

kevinsawicki commented 9 years ago

Thanks for fixing these :+1: