help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rainbow-delimiters highlighting { and } for tex and latex


From: Stefan Monnier
Subject: Re: Rainbow-delimiters highlighting { and } for tex and latex
Date: Wed, 07 Sep 2022 12:43:19 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

>> I don't know.  For me it just works (I don't use rainbow-delimiters,
>> I simply turned it on to double-check my intuition before replying to
>> you, and it worked for (..), {..} and [..] in a `latex-mode` buffer).
> What version are you using? 

Emacs-29.0.50, but I don't think this has changed for a long time.

> (while (> end (progn (skip-syntax-forward "^()" end)

Yes, that's the code.

> I can see that "( )" and "[ ]" get highlighted, but not "{ }".

The above code looks for chars with the "parenthesis syntax" according
to the major mode's syntax-table.  I.e. the same info used by
`show-paren`.

I'm using Emacs's built-in `latex-mode`.  Maybe you're using a different
major mode which doesn't give paren syntax to the braces?

Check the "syntax:" info give by `C-u C-x =` when your cursor in on a brace.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]