Here, func1 and func2 were highlighted differently because the regex that highlights functions expects either ( or \s=> immediately after the name. I've fixed it by also allowing <:
The only slight niggle is that if you type a < immediately after some text (without whitespace) it'll also trigger (for ex if (a<10) but we can't easily fix that with regex.
I don't have Atom to verify this, but it came up in Dart Code:
Here,
func1
andfunc2
were highlighted differently because the regex that highlights functions expects either(
or\s=>
immediately after the name. I've fixed it by also allowing<
:https://github.com/Dart-Code/Dart-Code/commit/6394cf3214c9cb1567548d533dc1be32cc07deea
Before:
After:
The only slight niggle is that if you type a
<
immediately after some text (without whitespace) it'll also trigger (for exif (a<10
) but we can't easily fix that with regex.