dag / vim-fish

Vim support for editing fish scripts
MIT License
431 stars 59 forks source link

Fix improper skipping of escaped backslashes before quotes #47

Open camnw opened 5 years ago

camnw commented 5 years ago

In the current state of the syntax file \\" will result in the match believing that the " is escaped, even though the backslash is escaped and thus the quote is not escaped. This commit fixes this issue by only skipping the quote it if the character before the \" or \' sequence is not a backslash.