]> git.eshelyaron.com Git - emacs.git/commit
Fix syntax bugs involving escaped newlines in comments
authorAlan Mackenzie <acm@muc.de>
Mon, 22 May 2023 16:09:07 +0000 (16:09 +0000)
committerAlan Mackenzie <acm@muc.de>
Mon, 22 May 2023 16:11:20 +0000 (16:11 +0000)
commitf33b301c29380cb0b295e1343e59c0faaf6ab621
treec76802a63656e4ceec14ce15f7364be9ee31a185
parent0cb1d695b429fceb45a11cd7ed73f3bb9ce7002f
Fix syntax bugs involving escaped newlines in comments

This fixes bug#63535

* src/syntax.c (forw_comment): take the initial syntax from the
argument PREV_SYNTAX rather than checking the buffer position
for a backslash.  Update the state at each character scanned.
(scan_sexps_forward): When the end position is escaped after a
call to forw_comment, return this status to the caller.
src/syntax.c