mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-23 21:37:34 +00:00
CC Mode: Fix spurious recognition of operators beginning with, e.g. "or"
This fixes bug #36801. * lisp/progmodes/cc-langs.el (c-pre-lambda-tokens-re): Use c-make-keywords-re rather than regexp-opt to make an optimised regexp out of a list of tokens.
This commit is contained in:
parent
3975eb4615
commit
87ec668e95
1 changed files with 1 additions and 1 deletions
|
|
@ -1542,7 +1542,7 @@ Currently (2016-08) only used in C++ mode."
|
|||
|
||||
(c-lang-defconst c-pre-lambda-tokens-re
|
||||
;; Regexp matching any token in the list `c-pre-lambda-tokens'.
|
||||
t (regexp-opt (c-lang-const c-pre-lambda-tokens)))
|
||||
t (c-make-keywords-re t (c-lang-const c-pre-lambda-tokens)))
|
||||
(c-lang-defvar c-pre-lambda-tokens-re (c-lang-const c-pre-lambda-tokens-re))
|
||||
|
||||
;;; Syntactic whitespace.
|
||||
|
|
|
|||
Loading…
Reference in a new issue