delimitMate icon indicating copy to clipboard operation
delimitMate copied to clipboard

Handle escaped quotes

Open mb64 opened this issue 4 years ago • 0 comments

Currently, if I type (in insert mode) "some text, delimitMate helpfully makes it "some text".

However, if I type "text \" with an escaped quote, delimitMate sees the quote, doesn't recognize the backslash, and fails to keep the ending quote: I need to type it myself.

It would be great if delimitMate handled escaped quotes. An appropriate rule might be, when a quote is typed in a string before an existing quote mark, insert " iff there are an odd number of backslashes.

mb64 avatar Apr 15 '20 17:04 mb64