Fix matching of functions and methods in some highlighters