Hi Arash, >>>>> Arash Esbati <ar...@gnu.org> writes: >> Yes. A major obstacle is that `syntax-propertize-rules' doesn't accept >> an entry of the form >> (REGEXP-OR-FUNC (1 "\"") (2 ".") (3 "\""))
> Really? I think the docstring says that it should work the way you > describe above: > Am I missing something? Sorry for my rusty memory. It was back-reference that wasn't supported by `syntax-propertize-rules', not the above form[1]. [1] Correspondence between you, Tassilo and I on May 2020 titled "font-latex breaks on verbatim environments" However, recent emacsen updated `syntax-propertize-rules' to allow back reference: > | Note: There may be at most nine back-references in the REGEXPs of > | all RULES in total. I wasn't aware of this change. I checked the source of emacs 26.1 and 27.1 but they still say "Note: back-references in REGEXPs do not work." in its doc string, while 28.2 is OK. Anyway, we can migrate to `syntax-propertize-rules' in future. Good news. Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine