]> code.delx.au - gnu-emacs/commit
Allow line comments ending with escaped NL to be continued to the next line.
authorAlan Mackenzie <acm@muc.de>
Mon, 28 Dec 2015 16:01:05 +0000 (16:01 +0000)
committerAlan Mackenzie <acm@muc.de>
Mon, 28 Dec 2015 16:01:05 +0000 (16:01 +0000)
commit326ffcce5fbbb0ca368cfa08a33101dbbcaa2ace
tree1b86615b5bed5089446aa9c5a8ae0619703aa3b0
parent17ab0d10e1db9cc4924ceb778e5c4e6bb9a90c3d
Allow line comments ending with escaped NL to be continued to the next line.

Use this in C, C++, and Objective C Modes.  Fixes bug#22246

* src/syntax.c (comment-end-can-be-escaped): New buffer local variable.
(forw-comment, back-comment): On encountering an end of comment character,
test whether it is escaped when `comment-end-can-be-escaped' is non-nil.

* doc/lispref/syntax.texi (Control Parsing): Describe
`comment-end-can-be-escaped'.

* etc/NEWS (Lisp Changes): Describe `comment-end-can-be-escaped'.

* lisp/progmodes/cc-langs.el: New c-lang-setvar `comment-end-can-be-escaped'.
doc/lispref/syntax.texi
etc/NEWS
lisp/progmodes/cc-langs.el
src/syntax.c