CC Mode: Don't propertize parens in macros incorrectly
Parentheses in macros were getting incorrectly propertized with the '(1) (punctuation) syntax-table text property. This was due to a typo in the patch "CC Mode: Rationalize and optimize cache invalidation (1)" from 2024-10-06. Correct this. * lisp/progmodes/cc-mode.el (c-depropertize-CPP): Move the first c-clear-syntax-table-with-value-trim-caches invocation from inside the enclosing `when' form to after it.
This commit is contained in:
parent
6a92f674fe
commit
b34c069d82
1 changed files with 2 additions and 2 deletions
|
@ -1033,8 +1033,8 @@ Note that the style variables are always made local to the buffer."
|
|||
(setq m-beg (point))
|
||||
(c-end-of-macro)
|
||||
(when c-ml-string-opener-re
|
||||
(save-excursion (c-depropertize-ml-strings-in-region m-beg (point)))
|
||||
(c-clear-syntax-table-with-value-trim-caches m-beg (point) '(1))))
|
||||
(save-excursion (c-depropertize-ml-strings-in-region m-beg (point))))
|
||||
(c-clear-syntax-table-with-value-trim-caches m-beg (point) '(1)))
|
||||
|
||||
(while (and (< (point) end)
|
||||
(setq ss-found
|
||||
|
|
Loading…
Add table
Reference in a new issue