]> git.eshelyaron.com Git - emacs.git/commit
Replace faulty non-matching regexp "\\<\\>" with "a\\`"
authorAlan Mackenzie <acm@muc.de>
Wed, 28 Mar 2018 18:53:32 +0000 (18:53 +0000)
committerAlan Mackenzie <acm@muc.de>
Wed, 28 Mar 2018 18:53:32 +0000 (18:53 +0000)
commit3ccbe1f43f8c73b5dbf7051b91cd850959f2a79f
tree87bdec6856d9264855f735b238ee1e3e25a51f4b
parentc77d9ea0e70e68be4742ed9962058a14f5391f6b
Replace faulty non-matching regexp "\\<\\>" with "a\\`"

The regexp "\\<\\>", which is supposed never to match, actually matches, for
instance, where a Chinese character is directly followed by an ASCII letter.
So, replace it with "a\\`".

* lisp/progmodes/cc-defs.el (cc-fix, c-make-keywords-re)
* lisp/progmodes/cc-engine.el (c-beginning-of-statement-1)
(c-forward-<>-arglist-recur, c-forward-decl-or-cast-1)
(c-looking-at-decl-block)
* lisp/progmodes/cc-langs.el (c-assignment-op-regexp)
(c-block-comment-ender-regexp, c-block-comment-start-regexp)
(c-line-comment-start-regexp, c-doc-comment-start-regexp)
(c-decl-start-colon-kwd-re, c-type-decl-prefix-key)
(c-type-decl-operator-prefix-key, c-pre-id-bracelist-key)
(c-enum-clause-introduction-re, c-nonlabel-token-2-key)
* lisp/progmodes/cc-vars.el (c-noise-macro-with-parens-name-re)
(c-make-noise-macro-regexps):
Replace "\\<\\>" by "a\\`".
lisp/progmodes/cc-defs.el
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-langs.el
lisp/progmodes/cc-vars.el