mirror of
https://github.com/neovim/neovim.git
synced 2026-09-02 12:23:50 +00:00
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: vim/vim#15140
closes: vim/vim#21125
8331682f80
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
24 lines
695 B
VimL
24 lines
695 B
VimL
" Vim filetype plugin file
|
|
" Language: CSS
|
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
|
" Contributors: Riley Bruins <ribru17@gmail.com> ('commentstring')
|
|
" Last Change: 2026 Aug 22
|
|
|
|
if exists("b:did_ftplugin")
|
|
finish
|
|
endif
|
|
let b:did_ftplugin = 1
|
|
|
|
let b:undo_ftplugin = "setl com< cms< inc< fo< ofu< isk<"
|
|
|
|
setlocal comments=s1:/*,mb:*,ex:*/ commentstring=/*\ %s\ */
|
|
" 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(\)\='
|
|
|