Subject: Re: bug#50202: bibtex-mode: unescaped dollar sign in file field leads to wrong highlighting

From: Roland Winkler <[email-masked]>
Date: Mon, 29 Aug 2022 10:19:26 -0500

On Fri, Aug 26 2022, Stefan Monnier wrote:
> Another option is to mark $ as punctuation and then rely instead on
> `font-lock-keywords` to highlight something like "\\$[^$\n]+\\$".
> So $^2$ would still be highlighted in URLs but "foo$bar" wouldn't.

Thanks, that's a good compromise that should cover most use cases
without getting too complicated.