[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] emacs-25 326ffcc: Allow line comments ending with esca
Re: [Emacs-diffs] emacs-25 326ffcc: Allow line comments ending with escaped NL to be continued to the next line.
Mon, 28 Dec 2015 08:41:23 -0800
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0
Stefan Monnier wrote:
Hmm... the way I read this, it would mean that
will be treated as an unclosed comment. Is that the way C defines it as well?
No, that's a closed comment. More interestingly, this:
is a closed comment followed by printf ("\n"), because backslash-newline removal
is done before tokenization. So the "right" fix would be to ignore
backslash-newline before identifying comments and other tokens.
Backslash-backslash-newline can be tricky, as I recall from long ago when I was
hacking on the GNU C preprocessor.