C++ Mode: Correct the fontification of const auto foo
* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): Correct a coding error involving `and' and `or'.
This commit is contained in:
parent
cbe3f5f720
commit
dacafba03d
1 changed files with 6 additions and 6 deletions
|
@ -9714,12 +9714,12 @@ This function might do hidden buffer changes."
|
|||
|
||||
(c-forward-syntactic-ws))
|
||||
|
||||
(when (or (and new-style-auto
|
||||
(looking-at c-auto-ops-re))
|
||||
(and (or maybe-typeless backup-maybe-typeless)
|
||||
(not got-identifier)
|
||||
(not got-prefix)
|
||||
at-type))
|
||||
(when (and (not got-identifier)
|
||||
(or (and new-style-auto
|
||||
(looking-at c-auto-ops-re))
|
||||
(and (or maybe-typeless backup-maybe-typeless)
|
||||
(not got-prefix)
|
||||
at-type)))
|
||||
;; Have found no identifier but `c-typeless-decl-kwds' has
|
||||
;; matched so we know we're inside a declaration. The
|
||||
;; preceding type must be the identifier instead.
|
||||
|
|
Loading…
Add table
Reference in a new issue