Open dexX7 opened 9 years ago
I think the bug is that quoted method names are not detected as method names as at all.
See:
I think it's this piece of code which detects a method declaration. If it is, then we have this ([^=]+\s+)?\w+\s*\(
regex fragment where \w+
is the piece that's supposed to be matching the method name. I am pretty sure it should be one of [a-zA-Z_]\w*
or a quoted string matcher. I just submitted a similar change for Pygments https://github.com/pygments/pygments/pull/1765 and would be happy to make one here too, but I am not sure if the project is still maintained?
Hi there, when using Groovy and quoted method names, it looks like two or more words at the beginning, followed by parenthesis breaks the syntax highlighting: