|
From: | Stefan Monnier |
Subject: | Re: Algorithm in electric-pair--unbalanced-strings-p unsuitable for CC Mode |
Date: | Wed, 03 Jul 2019 12:58:32 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> evasive and answer the point: can you suggest some other mechanism by > which CC Mode can create the required font-locking? Should be pretty easy: add a rule to font-lock-keywords (i.e. no change in syntax-tables) matching a double quote and which then checks with syntax-ppss if it's an opening or closing quote and whether the matching matching quote is on the same line or not (and applies a warning face accordingly). Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |