]> git.eshelyaron.com Git - emacs.git/commit
Allow a CC Mode derived mode to have strings delimited by single quotes.
authorAlan Mackenzie <acm@muc.de>
Sat, 30 Mar 2019 13:19:47 +0000 (13:19 +0000)
committerAlan Mackenzie <acm@muc.de>
Sat, 30 Mar 2019 13:19:47 +0000 (13:19 +0000)
commitb619777dd67e271d639c6fb1d031650af8fd79e6
tree59d47a1b9a5ce06d4bcde293979ba670fc5fd9aa
parentdd7d83e1dbe5c308384f92689d6eb27c9cde1c20
Allow a CC Mode derived mode to have strings delimited by single quotes.

Also fix the bug where the delimiters of '\033', etc. got the error face.

* lisp/progmodes/cc-langs.el (c-single-quotes-quote-strings): Enhance the docr
string.
(c-string-delims): Change doc string to doc comment.

* listp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings): In
searches and comparisons, take account of the string delimiters possibly
being '.  Fix argument in call of c-before-change-check-unbalanced-strings.
(c-parse-quotes-before-change, c-parse-quotes-after-change): Bind
case-fold-search to nil.  Analyze escape constructs inside character constants
more accurately, in particular accepting as valid more than one character
after /[0-7], /x, /u, and /U.  Amend calculations to account for this extra
length.
lisp/progmodes/cc-langs.el
lisp/progmodes/cc-mode.el