Commit: runtime(css): Update ftplugin, disable auto-commenting
Christian Brabandt <[email protected]>
| Newsgroups | gmane.editors.vim.devel |
|---|---|
| Message-ID | <[email protected]> |
runtime(css): Update ftplugin, disable auto-commenting Commit: https://github.com/vim/vim/commit/8331682f802455c868fc52ba09f7a8472cd0feea Author: Doug Kearns <[email protected]> Date: Fri Aug 21 15:26:57 2026 +0000 runtime(css): Update ftplugin, disable auto-commenting Remove "ro" from 'formatoptions'. The universal selector "*" cannot be disambiguated from the 'comments' middle "*" pattern, causing spurious "*" characters to be inserted after selector lines. fixes: #15140 closes: #21125 Signed-off-by: Doug Kearns <[email protected]> Signed-off-by: Christian Brabandt <[email protected]> diff --git a/runtime/ftplugin/css.vim b/runtime/ftplugin/css.vim index 778a9e12d..2427e8561 100644 --- a/runtime/ftplugin/css.vim +++ b/runtime/ftplugin/css.vim @@ -2,25 +2,22 @@ " Language: CSS " Maintainer: Doug Kearns <[email protected]> " Previous Maintainer: Nikolai Weibull <[email protected]> -" Last Change: 2020 Dec 21 -" 2024 Jun 02 by Riley Bruins <[email protected]> ('commentstring') +" Contributors: Riley Bruins <[email protected]> ('commentstring') +" Last Change: 2026 Aug 22 if exists("b:did_ftplugin") finish endif let b:did_ftplugin = 1 -let s:cpo_save = &cpo -set cpo&vim - let b:undo_ftplugin = "setl com< cms< inc< fo< ofu< isk<" setlocal comments=s1:/*,mb:*,ex:*/ commentstring=/*\ %s\ */ -setlocal formatoptions-=t formatoptions+=croql +" exclude "ro" - CSS universal selector "*" cannot be distinguished from +" 'comments' middle "*" pattern +setlocal formatoptions-=rot formatoptions+=cql setlocal omnifunc=csscomplete#CompleteCSS setlocal iskeyword+=- let &l:include = '^\s*@import\s\+\%(url(\)\=' -let &cpo = s:cpo_save -unlet s:cpo_save -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1wxnu6-00H3hr-U8%40256bit.org.