[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] emacs-25 326ffcc: Allow line comments ending with esca
From: |
Stefan Monnier |
Subject: |
Re: [Emacs-diffs] emacs-25 326ffcc: Allow line comments ending with escaped NL to be continued to the next line. |
Date: |
Mon, 28 Dec 2015 11:14:36 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
> - /* Ignore escaped characters, except comment-enders. */
> - if (code != Sendcomment && char_quoted (from, from_byte))
> + /* Ignore escaped characters, except comment-enders which cannot
> + be escaped. */
> + if ((Vcomment_end_can_be_escaped || code != Sendcomment)
> + && char_quoted (from, from_byte))
[...]
> if (code == Sendcomment
> && SYNTAX_FLAGS_COMMENT_STYLE (syntax, 0) == style
> && (SYNTAX_FLAGS_COMMENT_NESTED (syntax) ?
> - (nesting > 0 && --nesting == 0) : nesting < 0))
> + (nesting > 0 && --nesting == 0) : nesting < 0)
> + && !(Vcomment_end_can_be_escaped && char_quoted (from, from_byte)))
Hmm... the way I read this, it would mean that
/*blabla\*/
will be treated as an unclosed comment. Is that the way C defines it as well?
Stefan
- Re: [Emacs-diffs] emacs-25 326ffcc: Allow line comments ending with escaped NL to be continued to the next line.,
Stefan Monnier <=