]> git.lizzy.rs Git - rust.git/commit
vim: Tweak how comment nesting works
authorKevin Ballard <kevin@sb.org>
Sun, 16 Feb 2014 05:22:13 +0000 (21:22 -0800)
committerKevin Ballard <kevin@sb.org>
Tue, 25 Feb 2014 05:03:05 +0000 (21:03 -0800)
commitbc35eb78e2dab6b7cb3ede9176b0cfcafc4f8362
treeb9e0f59dc3eac1a9947f6663cb86fd1f06d9980b
parentd98668a55996d656072a4cac7abb1dcbbdf4f48b
vim: Tweak how comment nesting works

Don't try to match line comments inside of a comment block. That makes
no sense and can highlight differently for people who override their
highlights.

Similarly, don't match a doc-comment inside of a comment block. It
shouldn't be highlighted differently unless it's actually a doc-comment
(and nested comments are obviously not doc comments).

Fixes #12307.
src/etc/vim/syntax/rust.vim