GNU bug report logs -
#44653
28.0.50; sql-mode gets confused about string literals
Previous Next
Full log
Message #8 received at 44653 <at> debbugs.gnu.org (full text, mbox):
Dale Sedivec <dale <at> codefu.org> writes:
> 2. Evaluate the following in *scratch*:
>
> (let ((buf (generate-new-buffer "sql")))
> (switch-to-buffer buf)
> (sql-mode)
> (insert "select '''")
> (goto-char 1)
> (delete-region 1 8)
> (goto-char (point-max)))
>
> Point should now be at the end of an `sql-mode' buffer containing
> "'''" (three apostrophes).
>
> 4. Press backspace to erase the third apostrophe.
>
> 5. M-: (nth 3 (syntax-ppss)) RET
>
> Expected result: fourth element of syntax-ppss, the delimiter character
> for the current string, is nil, since we are no longer in a string
>
> Observed result: fourth element is ?' (39), indicating that point is
> still inside a string
>
> My first guess is that this is related to commit 289d6b2265e and #40231.
Yes, sounds likely. I've added Florian to the Cc's -- perhaps he has
some comments here.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 4 years and 197 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.