smartparens icon indicating copy to clipboard operation
smartparens copied to clipboard

Unable to backward delete a single " in strict mode

Open pronobis opened this issue 9 years ago • 4 comments

When in strict mode (in elsip), when for some reason a single " character appears, it is not possible to delete the character backward using sp-backward-delete-char

pronobis avatar Mar 27 '15 03:03 pronobis

Single character where? Inside another string? Because otherwise you simply can't tell it is single, that's how emacs syntax works.

Fuco1 avatar Oct 31 '15 19:10 Fuco1

I meant a single character outside a string, basically when that character opens a string that ends at the EOF and not with another ".

pronobis avatar Nov 12 '15 16:11 pronobis

Yea, because in that case emacs still reports it as a paired delimiter. Though that particular case is simple to solve, we can just check the point-max and see if it's in a string or not.

Fuco1 avatar Nov 12 '15 16:11 Fuco1

That makes sense.

pronobis avatar Nov 12 '15 18:11 pronobis