Implement ' separators in C++ integer literals.
commita4750b39560a8a182cf95dd4494f79ab6466e9b2
authorAlan Mackenzie <acm@muc.de>
Fri, 24 Jun 2016 13:26:34 +0000 (24 13:26 +0000)
committerAlan Mackenzie <acm@muc.de>
Fri, 24 Jun 2016 13:26:34 +0000 (24 13:26 +0000)
tree825964dd6b6e6eec5ad34517ae694acb28d37e55
parent63457dcfe0fe101d3db131c4b05823e8280b6bff
Implement ' separators in C++ integer literals.

* lisp/progmodes/cc-langs.el (c-get-state-before-change-functions): insert
c-before-after-change-digit-quote into the C++ value.
(c-before-font-lock-functions): Insert c-depropertize-new-text into the values
for all languages.  Insert c-before-after-change-digit-quote into the C++
value.

* lisp/progmodes/cc-mode.el (c-depropertize-CPP): Wrap the function in
c-save-buffer-state.
(c-depropertize-new-text, c-before-after-change-digit-quote): New functions.
lisp/progmodes/cc-langs.el
lisp/progmodes/cc-mode.el