]> git.eshelyaron.com Git - emacs.git/commit
cc-mode: extend regexp used by ‘c-or-c++-mode’
authorMichal Nazarewicz <mina86@mina86.com>
Mon, 4 May 2020 18:08:10 +0000 (19:08 +0100)
committerMichal Nazarewicz <mina86@mina86.com>
Sat, 9 May 2020 10:30:32 +0000 (11:30 +0100)
commitae3c510696f02f01d03052f070e5ce65b4018a45
tree7ffda57aed8788d8b0cbfbb16d486c0d0db15b97
parentfab23328512e47a50caced8d074e86e583cc8a9f
cc-mode: extend regexp used by ‘c-or-c++-mode’

* lisp/progmodes/cc-mode (c-or-c++-mode--regexp): Expand the regexp to
match some more C++-only constructs and recognise a few more standard
C++ header files.  Also make sure identifiers start with non-digit.
(c-or-c++-mode): Add ‘(interactive)’ declaration.

* test/lisp/progmodes/cc-mode-tests.el (c-or-c++-mode): Add test case
for the newly recognised constructs.
lisp/progmodes/cc-mode.el
test/lisp/progmodes/cc-mode-tests.el