On Mar 30, 2024 13:15, Mattias EngdegÄrd <mattias.engdegard@gmail.com> wrote:

> -         (looking-at ".*new.*")))
> +         (looking-at "^[^//]*new[^//]*;$")))


That regexp doesn't look right: [^//] doesn't mean "no occurrence of double-slash" but is just the same as [^/].

I'll look at it again - thanks :)
Theo