summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/indent/rust.vim
AgeCommit message (Collapse)AuthorFiles
2026-01-29vim-patch:663d809: runtime(rust): Fix Rust indentation when string contains "if"zeertzjq1
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). Add an indent test to ensure this does not regress. closes: vim/vim#19265 https://github.com/vim/vim/commit/663d809194b471ebbdd9e270086c6d0ca53da8fd Co-authored-by: taylor.fish <contact@taylor.fish>
2026-01-02vim-patch:62d8f3d: runtime: Revert several "mark invalid contact addresses" ↵zeertzjq1
commits (#37192) This reverts commits: - 6b652a785033fd4164e049492a7327c1ed7c3e5f - 2f689d5abde0ccddca9e20d8c93a0299bd054e32 - a025a46d4169587145fb54f04af349cd05cb6122 Several email addresses that are known to be valid caused bounces due to an issue with my email setup. The previous commits incorrectly marked these addresses as invalid. So revert the whole thing again. https://github.com/vim/vim/commit/62d8f3dab5a0b30c31a8df86a973c5e59821a3f0 N/A patch: vim-patch:2f689d5: runtime: mark more invalid email addresses Co-authored-by: Christian Brabandt <cb@256bit.org>
2026-01-01vim-patch:partial:2f689d5: runtime: mark more invalid email addresseszeertzjq1
https://github.com/vim/vim/commit/2f689d5abde0ccddca9e20d8c93a0299bd054e32 Skip colors/ and syntax/help_ru.vim: missing previous changes. Co-authored-by: Christian Brabandt <cb@256bit.org>
2025-12-31vim-patch:5c2b594: runtime(rust): Update indentation after nested array ↵zeertzjq1
literal (#37177) fixes: vim/vim#18974 closes: vim/vim#19042 https://github.com/vim/vim/commit/5c2b594d0e86e4484cc92bd415aedbef5749bd9e Co-authored-by: Brian Carbone <brian@briancarbone.com>
2025-12-29vim-patch:1bc3610: runtime(rust): partly revert e426245b, it causes more ↵zeertzjq1
issues than it solves (#37156) related: vim/vim#18974 https://github.com/vim/vim/commit/1bc3610b0a59ea89d9f58f2abab9f9b1062c1698 Co-authored-by: Christian Brabandt <cb@256bit.org>
2025-12-28vim-patch:e426245: runtime(rust): clean-up indent script, handle opening ↵zeertzjq1
empty line correctly (#37139) fixes: vim/vim#18974 https://github.com/vim/vim/commit/e426245bb38fbafb504d8bf9f327a28c2785897c Co-authored-by: Christian Brabandt <cb@256bit.org>
2024-07-04vim-patch:11d5992: runtime(rust): use shiftwidth() in indent scriptChristian Clason1
closes: vim/vim#15138 https://github.com/vim/vim/commit/11d599257310bb95a7d1a3537345ae26f36c6210 Co-authored-by: novenary <novenary@kwak.zip>
2023-09-13vim-patch:fc93594d562dChristian Clason1
runtime(rust): sync rust runtime files with upstream (vim/vim#13075) https://github.com/vim/vim/commit/fc93594d562dbbd9da03c89754538f91efd0c7ca Co-authored-by: Gregory Anders <8965202+gpanders@users.noreply.github.com>
2023-08-29vim-patch:0382f05dbd65Christian Clason1
runtime: Set b:undo_indent where missing (vim/vim#12944) https://github.com/vim/vim/commit/0382f05dbd659d8e39ee4e71c1e5062ac5c0a8fd Co-authored-by: dkearns <dougkearns@gmail.com>
2023-08-21vim-patch:478668013f06Christian Clason1
runtime(rust): fix rust indent (vim/vim#12542) https://github.com/vim/vim/commit/478668013f060a75b8cd8cc6ca2cf2abb3bcc4a5 Co-authored-by: Raphael <glephunter@gmail.com>
2017-11-07vim-patch:3ec574f2b549Justin M. Keyes1
Update runtime files. Includes changing &sw to shiftwidth() for all indent scripts. https://github.com/vim/vim/commit/3ec574f2b549f456f664f689d6da36dc5719aeb9
2017-11-07vim-patch:3c2881dc1195Justin M. Keyes1
Update runtime files. Add Rust support. https://github.com/vim/vim/commit/3c2881dc1195f53ebafc387378399ddd6cb677a7