indent/rust.vim behaves incorrectly when a string literal contains the substring "if".
For example, in this code:
let x = " motif "; struct X { }
indent/rust.vim thinks that the closing "}" should line up with "motif".
This patch fixes the issue by checking whether the "if" is in a string literal or comment before considering it to be a match for a subsequent brace (and also by requiring it to start on a word boundary).
https://github.com/vim/vim/pull/19265
(1 file)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()