The prior match was only running if the statement had $VAR or .var in them, which else if wouldn't always have. I could just make a separate regular expression for this to handle "else if" and leave this callback alone.