annotate runtime/ftplugin/css.vim @ 33594:e9c70470fe94 v9.0.2041

patch 9.0.2041: trim(): hard to use default mask Commit: https://github.com/vim/vim/commit/8079917447e7436dccc2e4cd4a4a56ae0a4712f2 Author: Illia Bobyr <illia.bobyr@gmail.com> Date: Tue Oct 17 18:00:50 2023 +0200 patch 9.0.2041: trim(): hard to use default mask Problem: trim(): hard to use default mask (partly revert v9.0.2040) Solution: use default mask when it is empty The default 'mask' value is pretty complex, as it includes many characters. Yet, if one needs to specify the trimming direction, the third argument, 'trim()' currently requires the 'mask' value to be provided explicitly. Currently, an empty 'mask' will make 'trim()' call return 'text' value that is passed in unmodified. It is unlikely that someone is using it, so the chances of scripts being broken by this change are low. Also, this reverts commit 9.0.2040 (which uses v:none for the default and requires to use an empty string instead). closes: #13358 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Illia Bobyr <illia.bobyr@gmail.com>
author Christian Brabandt <cb@256bit.org>
date Tue, 17 Oct 2023 18:15:03 +0200
parents fab58304f77d
children 7c7432a53a6c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim filetype plugin file
21825
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
2 " Language: CSS
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
3 " Maintainer: Doug Kearns <dougkearns@gmail.com>
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
4 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
23305
fab58304f77d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 21825
diff changeset
5 " Last Change: 2020 Dec 21
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 if exists("b:did_ftplugin")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 let b:did_ftplugin = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1220
diff changeset
12 let s:cpo_save = &cpo
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1220
diff changeset
13 set cpo&vim
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1220
diff changeset
14
23305
fab58304f77d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 21825
diff changeset
15 let b:undo_ftplugin = "setl com< cms< inc< fo< ofu< isk<"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
17 setlocal comments=s1:/*,mb:*,ex:*/ commentstring&
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 375
diff changeset
18 setlocal formatoptions-=t formatoptions+=croql
1220
97cc1e746d2c updated for version 7.1b
vimboss
parents: 839
diff changeset
19 setlocal omnifunc=csscomplete#CompleteCSS
23305
fab58304f77d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 21825
diff changeset
20 setlocal iskeyword+=-
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
22 let &l:include = '^\s*@import\s\+\%(url(\)\='
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1220
diff changeset
23
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1220
diff changeset
24 let &cpo = s:cpo_save
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1220
diff changeset
25 unlet s:cpo_save