vim-patch:10e8ff9b2607 (#23977)

Update runtime files

10e8ff9b26

Also:
- fix a missing `<` in builtin.txt.
- edit `:function` `{name}` wording to match the change made for the docs above
  by Justin in #10619.
- link to `*vimrc*` rather than `*init.vim*` in repeat.txt change (as `init.lua`
  may also be used).

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
Sean Dewar 2023-06-11 12:40:22 +01:00 committed by GitHub
parent 643546b82b
commit 473a216a21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
19 changed files with 132 additions and 37 deletions

View File

@ -774,6 +774,9 @@ OptionSet After setting an option (except during
the option. Similarly |v:option_oldglobal| is the option. Similarly |v:option_oldglobal| is
only set when |:set| or |:setglobal| was used. only set when |:set| or |:setglobal| was used.
This does not set |<abuf>|, you could use
|bufnr()|.
Note that when setting a |global-local| string Note that when setting a |global-local| string
option with |:set|, then |v:option_old| is the option with |:set|, then |v:option_old| is the
old global value. However, for all other kinds old global value. However, for all other kinds

View File

@ -1233,7 +1233,7 @@ clearmatches([{win}]) *clearmatches()*
Can also be used as a |method|: > Can also be used as a |method|: >
GetWin()->clearmatches() GetWin()->clearmatches()
< <
col({expr} [, {winid}) *col()* col({expr} [, {winid}]) *col()*
The result is a Number, which is the byte index of the column The result is a Number, which is the byte index of the column
position given with {expr}. The accepted positions are: position given with {expr}. The accepted positions are:
. the cursor position . the cursor position
@ -1296,7 +1296,7 @@ complete({startcol}, {matches}) *complete()* *E785*
Example: > Example: >
inoremap <F5> <C-R>=ListMonths()<CR> inoremap <F5> <C-R>=ListMonths()<CR>
func! ListMonths() func ListMonths()
call complete(col('.'), ['January', 'February', 'March', call complete(col('.'), ['January', 'February', 'March',
\ 'April', 'May', 'June', 'July', 'August', 'September', \ 'April', 'May', 'June', 'July', 'August', 'September',
\ 'October', 'November', 'December']) \ 'October', 'November', 'December'])
@ -1540,7 +1540,7 @@ cursor({list})
This is like the return value of |getpos()| or |getcurpos()|, This is like the return value of |getpos()| or |getcurpos()|,
but without the first item. but without the first item.
To position the cursor using the character count, use To position the cursor using {col} as the character count, use
|setcursorcharpos()|. |setcursorcharpos()|.
Does not change the jumplist. Does not change the jumplist.
@ -5626,7 +5626,7 @@ mkdir({name} [, {flags} [, {prot}]])
< and "subdir" already exists then "subdir/tmp" will be < and "subdir" already exists then "subdir/tmp" will be
scheduled for deletion, like with: > scheduled for deletion, like with: >
defer delete('subdir/tmp', 'rf') defer delete('subdir/tmp', 'rf')
<
If {prot} is given it is used to set the protection bits of If {prot} is given it is used to set the protection bits of
the new directory. The default is 0o755 (rwxr-xr-x: r/w for the new directory. The default is 0o755 (rwxr-xr-x: r/w for
the user, readable for others). Use 0o700 to make it the user, readable for others). Use 0o700 to make it

View File

@ -902,9 +902,10 @@ Note: these are typed literally, they are not special keys!
write. *E495* write. *E495*
*:<abuf>* *<abuf>* *:<abuf>* *<abuf>*
<abuf> When executing autocommands, is replaced with the currently <abuf> When executing autocommands, is replaced with the currently
effective buffer number (for ":r file" and ":so file" it is effective buffer number. It is not set for all events,
the current buffer, the file being read/sourced is not in a also see |bufnr()|. For ":r file" and ":so file" it is the
buffer). *E496* current buffer, the file being read/sourced is not in a
buffer. *E496*
*:<amatch>* *<amatch>* *:<amatch>* *<amatch>*
<amatch> When executing autocommands, is replaced with the match for <amatch> When executing autocommands, is replaced with the match for
which this autocommand was executed. *E497* which this autocommand was executed. *E497*

View File

@ -2799,7 +2799,7 @@ text...
let mylist = [1, 2, 3] let mylist = [1, 2, 3]
lockvar 0 mylist lockvar 0 mylist
let mylist[0] = 77 " OK let mylist[0] = 77 " OK
call add(mylist, 4] " OK call add(mylist, 4) " OK
let mylist = [7, 8, 9] " Error! let mylist = [7, 8, 9] " Error!
< *E743* < *E743*
For unlimited depth use [!] and omit [depth]. For unlimited depth use [!] and omit [depth].

View File

@ -392,8 +392,8 @@ If there is no g:termdebug_config you can use: >vim
let g:termdebug_map_K = 0 let g:termdebug_map_K = 0
< <
*termdebug_disasm_window* *termdebug_disasm_window*
If you want the Asm window shown by default, set the flag to 1. If you want the Asm window shown by default, set the "disasm_window" flag to
the "disasm_window_height" entry can be used to set the window height: >vim 1. The "disasm_window_height" entry can be used to set the window height: >vim
let g:termdebug_config['disasm_window'] = 1 let g:termdebug_config['disasm_window'] = 1
let g:termdebug_config['disasm_window_height'] = 15 let g:termdebug_config['disasm_window_height'] = 15
If there is no g:termdebug_config you can use: >vim If there is no g:termdebug_config you can use: >vim

View File

@ -5386,7 +5386,7 @@ A jump table for the options with a short description can be found at |Q_op|.
local to buffer local to buffer
Number of spaces to use for each step of (auto)indent. Used for Number of spaces to use for each step of (auto)indent. Used for
|'cindent'|, |>>|, |<<|, etc. |'cindent'|, |>>|, |<<|, etc.
When zero the 'ts' value will be used. Use the |shiftwidth()| When zero the 'tabstop' value will be used. Use the |shiftwidth()|
function to get the effective shiftwidth value. function to get the effective shiftwidth value.
*'shortmess'* *'shm'* *'shortmess'* *'shm'*
@ -5662,6 +5662,8 @@ A jump table for the options with a short description can be found at |Q_op|.
line in the window wraps part of it may not be visible, as if it is line in the window wraps part of it may not be visible, as if it is
above the window. "<<<" is displayed at the start of the first line, above the window. "<<<" is displayed at the start of the first line,
highlighted with |hl-NonText|. highlighted with |hl-NonText|.
You may also want to add "lastline" to the 'display' option to show as
much of the last line as possible.
NOTE: only partly implemented, currently works with CTRL-E, CTRL-Y NOTE: only partly implemented, currently works with CTRL-E, CTRL-Y
and scrolling with the mouse. and scrolling with the mouse.
@ -6313,13 +6315,25 @@ A jump table for the options with a short description can be found at |Q_op|.
(or 3 or whatever you prefer) and use 'noexpandtab'. Then Vim (or 3 or whatever you prefer) and use 'noexpandtab'. Then Vim
will use a mix of tabs and spaces, but typing <Tab> and <BS> will will use a mix of tabs and spaces, but typing <Tab> and <BS> will
behave like a tab appears every 4 (or 3) characters. behave like a tab appears every 4 (or 3) characters.
2. Set 'tabstop' and 'shiftwidth' to whatever you prefer and use This is the recommended way, the file will look the same with other
tools and when listing it in a terminal.
2. Set 'softtabstop' and 'shiftwidth' to whatever you prefer and use
'expandtab'. This way you will always insert spaces. The
formatting will never be messed up when 'tabstop' is changed (leave
it at 8 just in case). The file will be a bit larger.
You do need to check if no Tabs exist in the file. You can get rid
of them by first setting 'expandtab' and using `%retab!`, making
sure the value of 'tabstop' is set correctly.
3. Set 'tabstop' and 'shiftwidth' to whatever you prefer and use
'expandtab'. This way you will always insert spaces. The 'expandtab'. This way you will always insert spaces. The
formatting will never be messed up when 'tabstop' is changed. formatting will never be messed up when 'tabstop' is changed.
3. Set 'tabstop' and 'shiftwidth' to whatever you prefer and use a You do need to check if no Tabs exist in the file, just like in the
item just above.
4. Set 'tabstop' and 'shiftwidth' to whatever you prefer and use a
|modeline| to set these values when editing the file again. Only |modeline| to set these values when editing the file again. Only
works when using Vim to edit the file. works when using Vim to edit the file, other tools assume a tabstop
4. Always set 'tabstop' and 'shiftwidth' to the same value, and is worth 8 spaces.
5. Always set 'tabstop' and 'shiftwidth' to the same value, and
'noexpandtab'. This should then work (for initial indents only) 'noexpandtab'. This should then work (for initial indents only)
for any tabstop setting that people use. It might be nice to have for any tabstop setting that people use. It might be nice to have
tabs after the first non-blank inserted as spaces if you do this tabs after the first non-blank inserted as spaces if you do this

View File

@ -260,8 +260,8 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
'runtimepath'. 'runtimepath'.
If the filetype detection was already enabled (this If the filetype detection was already enabled (this
is usually done with a "syntax enable" or "filetype is usually done with a `syntax enable` or `filetype on`
on" command in your |init.vim|, or automatically during command in your |vimrc|, or automatically during
|initialization|), and the package was found in |initialization|), and the package was found in
"pack/*/opt/{name}", this command will also look "pack/*/opt/{name}", this command will also look
for "{name}/ftdetect/*.vim" files. for "{name}/ftdetect/*.vim" files.

View File

@ -111,7 +111,7 @@ zuG Undo |zW| and |zG|, remove the word from the internal
list, like with |zW|. list, like with |zW|.
*:spellra* *:spellrare* *:spellra* *:spellrare*
:[count]spellr[are] {word} :[count]spellra[re] {word}
Add {word} as a rare word to 'spellfile', similar to Add {word} as a rare word to 'spellfile', similar to
|zw|. Without count the first name is used, with |zw|. Without count the first name is used, with
a count of two the second entry, etc. a count of two the second entry, etc.
@ -124,7 +124,7 @@ zuG Undo |zW| and |zG|, remove the word from the internal
nnoremap z/ :exe ':spellrare! ' .. expand('<cWORD>')<CR> nnoremap z/ :exe ':spellrare! ' .. expand('<cWORD>')<CR>
< |:spellundo|, |zuw|, or |zuW| can be used to undo this. < |:spellundo|, |zuw|, or |zuW| can be used to undo this.
:spellr[rare]! {word} Add {word} as a rare word to the internal word :spellra[re]! {word} Add {word} as a rare word to the internal word
list, similar to |zW|. list, similar to |zW|.
:[count]spellu[ndo] {word} *:spellu* *:spellundo* :[count]spellu[ndo] {word} *:spellu* *:spellundo*

View File

@ -426,9 +426,11 @@ accordingly, proceeding as follows:
2. Process the arguments 2. Process the arguments
The options and file names from the command that start Vim are The options and file names from the command that start Vim are
inspected. Buffers are created for all files (but not loaded yet). inspected.
The |-V| argument can be used to display or log what happens next, The |-V| argument can be used to display or log what happens next,
useful for debugging the initializations. useful for debugging the initializations.
The |--cmd| arguments are executed.
Buffers are created for all files (but not loaded yet).
3. Start a server (unless |--listen| was given) and set |v:servername|. 3. Start a server (unless |--listen| was given) and set |v:servername|.

View File

@ -44,6 +44,13 @@ functions.
unless "!" is given. unless "!" is given.
{name} may be a |Dictionary| |Funcref| entry: > {name} may be a |Dictionary| |Funcref| entry: >
:function dict.init :function dict.init
< Note that {name} is not an expression, you cannot use
a variable that is a function reference. You can use
this dirty trick to list the function referred to with
variable "Funcref": >
let g:MyFuncref = Funcref
func g:MyFuncref
unlet g:MyFuncref
:fu[nction] /{pattern} List functions with a name matching {pattern}. :fu[nction] /{pattern} List functions with a name matching {pattern}.
Example that lists all functions ending with "File": > Example that lists all functions ending with "File": >
@ -72,8 +79,7 @@ See |:verbose-cmd| for more information.
name has a colon in the name, e.g. for "foo:bar()". name has a colon in the name, e.g. for "foo:bar()".
Before that patch no error was given). Before that patch no error was given).
{name} can also be a |Dictionary| entry that is a {name} may be a |Dictionary| |Funcref| entry: >
|Funcref|: >
:function dict.init(arg) :function dict.init(arg)
< "dict" must be an existing dictionary. The entry < "dict" must be an existing dictionary. The entry
"init" is added if it didn't exist yet. Otherwise [!] "init" is added if it didn't exist yet. Otherwise [!]

18
runtime/ftplugin/corn.vim Normal file
View File

@ -0,0 +1,18 @@
" Vim filetype plugin
" Language: Corn
" Original Author: Jake Stanger (mail@jstanger.dev)
" License: MIT
" Last Change: 2023 May 28
if exists('b:did_ftplugin')
finish
endif
let b:did_ftplugin = 1
setlocal formatoptions-=t
" Set comment (formatting) related options.
setlocal commentstring=//\ %s comments=://
" Let Vim know how to disable the plug-in.
let b:undo_ftplugin = 'setlocal commentstring< comments< formatoptions<'

View File

@ -1,7 +1,7 @@
" Vim filetype plugin file " Vim filetype plugin file
" Language: Fennel " Language: Fennel
" Maintainer: Gregory Anders <greg[NOSPAM]@gpanders.com> " Maintainer: Gregory Anders <greg[NOSPAM]@gpanders.com>
" Last Update: 2022 Apr 20 " Last Update: 2023 Jun 9
if exists('b:did_ftplugin') if exists('b:did_ftplugin')
finish finish
@ -13,6 +13,6 @@ setlocal comments=:;;,:;
setlocal formatoptions-=t setlocal formatoptions-=t
setlocal suffixesadd=.fnl setlocal suffixesadd=.fnl
setlocal lisp setlocal lisp
setlocal lispwords=accumulate,collect,do,doto,each,eval-compiler,fn,for,icollect,lambda,let,macro,macros,match,match-try,when,while,with-open setlocal lispwords=accumulate,case,case-try,collect,do,doto,each,eval-compiler,faccumulate,fcollect,fn,for,icollect,lambda,let,macro,macros,match,match-try,when,while,with-open
let b:undo_ftplugin = 'setlocal commentstring< comments< formatoptions< suffixesadd< lisp< lispwords<' let b:undo_ftplugin = 'setlocal commentstring< comments< formatoptions< suffixesadd< lisp< lispwords<'

View File

@ -0,0 +1,20 @@
" Vim filetype plugin file
" Language: MS Windows URL shortcut file
" Maintainer: ObserverOfTime <chronobserver@disroot.org>
" Latest Revision: 2023-06-04
if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1
let s:cpo_save = &cpoptions
set cpoptions&vim
let b:undo_ftplugin = "setl com< cms< fo<"
setlocal comments=:; commentstring=;\ %s
setlocal formatoptions-=t formatoptions+=croql
let &cpoptions = s:cpo_save
unlet s:cpo_save

View File

@ -3,7 +3,7 @@
" License: VIM License " License: VIM License
" Maintainer: Nirbheek Chauhan <nirbheek.chauhan@gmail.com> " Maintainer: Nirbheek Chauhan <nirbheek.chauhan@gmail.com>
" Liam Beguin <liambeguin@gmail.com> " Liam Beguin <liambeguin@gmail.com>
" Last Change: 2021 Aug 16 " Last Change: 2023 May 27
" Credits: Zvezdan Petkovic <zpetkovic@acm.org> " Credits: Zvezdan Petkovic <zpetkovic@acm.org>
" Neil Schemenauer <nas@meson.ca> " Neil Schemenauer <nas@meson.ca>
" Dmitry Vasiliev " Dmitry Vasiliev
@ -68,6 +68,7 @@ syn keyword mesonBuiltin
\ add_global_link_arguments \ add_global_link_arguments
\ add_languages \ add_languages
\ add_project_arguments \ add_project_arguments
\ add_project_dependencies
\ add_project_link_arguments \ add_project_link_arguments
\ add_test_setup \ add_test_setup
\ alias_target \ alias_target
@ -99,6 +100,7 @@ syn keyword mesonBuiltin
\ install_headers \ install_headers
\ install_man \ install_man
\ install_subdir \ install_subdir
\ install_symlink
\ install_emptydir \ install_emptydir
\ is_disabler \ is_disabler
\ is_variable \ is_variable
@ -115,6 +117,7 @@ syn keyword mesonBuiltin
\ shared_library \ shared_library
\ shared_module \ shared_module
\ static_library \ static_library
\ structured_sources
\ subdir \ subdir
\ subdir_done \ subdir_done
\ subproject \ subproject
@ -125,6 +128,7 @@ syn keyword mesonBuiltin
\ vcs_tag \ vcs_tag
\ warning \ warning
\ range \ range
\ debug
if exists("meson_space_error_highlight") if exists("meson_space_error_highlight")
" trailing whitespace " trailing whitespace
@ -146,7 +150,7 @@ hi def link mesonEscape Special
hi def link mesonNumber Number hi def link mesonNumber Number
hi def link mesonBuiltin Function hi def link mesonBuiltin Function
hi def link mesonBoolean Boolean hi def link mesonBoolean Boolean
if exists("meson_space_error_higlight") if exists("meson_space_error_highlight")
hi def link mesonSpaceError Error hi def link mesonSpaceError Error
endif endif

View File

@ -1,7 +1,7 @@
" Vim syntax file " Vim syntax file
" Language: Structurizr DSL " Language: Structurizr DSL
" Maintainer: Bastian Venthur <venthur@debian.org> " Maintainer: Bastian Venthur <venthur@debian.org>
" Last Change: 2022-02-15 " Last Change: 2022-05-22
" Remark: For a language reference, see " Remark: For a language reference, see
" https://github.com/structurizr/dsl " https://github.com/structurizr/dsl
@ -26,6 +26,7 @@ syn keyword skeyword configuration
syn keyword skeyword container syn keyword skeyword container
syn keyword skeyword containerinstance syn keyword skeyword containerinstance
syn keyword skeyword custom syn keyword skeyword custom
syn keyword skeyword default
syn keyword skeyword deployment syn keyword skeyword deployment
syn keyword skeyword deploymentenvironment syn keyword skeyword deploymentenvironment
syn keyword skeyword deploymentgroup syn keyword skeyword deploymentgroup
@ -40,6 +41,7 @@ syn keyword skeyword group
syn keyword skeyword healthcheck syn keyword skeyword healthcheck
syn keyword skeyword include syn keyword skeyword include
syn keyword skeyword infrastructurenode syn keyword skeyword infrastructurenode
syn keyword skeyword instances
syn keyword skeyword model syn keyword skeyword model
syn keyword skeyword person syn keyword skeyword person
syn keyword skeyword perspectives syn keyword skeyword perspectives
@ -54,6 +56,7 @@ syn keyword skeyword tags
syn keyword skeyword technology syn keyword skeyword technology
syn keyword skeyword terminology syn keyword skeyword terminology
syn keyword skeyword theme syn keyword skeyword theme
syn keyword skeyword themes
syn keyword skeyword title syn keyword skeyword title
syn keyword skeyword url syn keyword skeyword url
syn keyword skeyword users syn keyword skeyword users

View File

@ -2,9 +2,9 @@
" Language: sway window manager config " Language: sway window manager config
" Original Author: James Eapen <james.eapen@vai.org> " Original Author: James Eapen <james.eapen@vai.org>
" Maintainer: James Eapen <james.eapen@vai.org> " Maintainer: James Eapen <james.eapen@vai.org>
" Version: 0.1.6 " Version: 0.2.1
" Reference version (jamespeapen/swayconfig.vim): 0.11.6 " Reference version (jamespeapen/swayconfig.vim): 0.12.1
" Last Change: 2022 Aug 08 " Last Change: 2023 Mar 20
" References: " References:
" http://i3wm.org/docs/userguide.html#configuring " http://i3wm.org/docs/userguide.html#configuring
@ -58,6 +58,10 @@ syn match swayConfigClientColor /^\s*client.\w\+\s\+.*$/ contains=i3ConfigClient
syn keyword swayConfigInputKeyword input contained syn keyword swayConfigInputKeyword input contained
syn match swayConfigInput /^\s*input\s\+.*$/ contains=swayConfigInputKeyword syn match swayConfigInput /^\s*input\s\+.*$/ contains=swayConfigInputKeyword
" Seat config
syn keyword swayConfigSeatKeyword seat contained
syn match swayConfigSeat /^\s*seat\s\+.*$/ contains=swayConfigSeatKeyword
" set display outputs " set display outputs
syn match swayConfigOutput /^\s*output\s\+.*$/ contains=i3ConfigOutput syn match swayConfigOutput /^\s*output\s\+.*$/ contains=i3ConfigOutput
@ -66,6 +70,10 @@ syn keyword swayConfigFocusKeyword focus contained
syn keyword swayConfigFocusType output contained syn keyword swayConfigFocusType output contained
syn match swayConfigFocus /^\s*focus\soutput\s.*$/ contains=swayConfigFocusKeyword,swayConfigFocusType syn match swayConfigFocus /^\s*focus\soutput\s.*$/ contains=swayConfigFocusKeyword,swayConfigFocusType
" mouse warping
syn keyword swayConfigMouseWarpingType container contained
syn match swayConfigMouseWarping /^\s*mouse_warping\s\+\(output\|container\|none\)\s\?$/ contains=i3ConfigMouseWarpingKeyword,i3ConfigMouseWarpingType,swayConfigMouseWarpingType
" focus follows mouse " focus follows mouse
syn clear i3ConfigFocusFollowsMouseType syn clear i3ConfigFocusFollowsMouseType
syn clear i3ConfigFocusFollowsMouse syn clear i3ConfigFocusFollowsMouse
@ -80,7 +88,7 @@ syn match swayConfigXwaylandModifier /^\s*xwayland\s\+\(enable\|disable\|force\)
" Group mode/bar " Group mode/bar
syn clear i3ConfigBlock syn clear i3ConfigBlock
syn region swayConfigBlock start=+.*s\?{$+ end=+^}$+ contains=i3ConfigBlockKeyword,i3ConfigString,i3ConfigBind,i3ConfigInitializeKeyword,i3ConfigComment,i3ConfigFont,i3ConfigFocusWrappingType,i3ConfigColor,i3ConfigVariable,swayConfigInputKeyword,i3ConfigOutput transparent keepend extend syn region swayConfigBlock start=+.*s\?{$+ end=+^}$+ contains=i3ConfigBlockKeyword,i3ConfigString,i3ConfigBind,i3ConfigInitializeKeyword,i3ConfigComment,i3ConfigFont,i3ConfigFocusWrappingType,i3ConfigColor,i3ConfigVariable,swayConfigInputKeyword,swayConfigSeatKeyword,i3ConfigOutput transparent keepend extend
"hi def link swayConfigError Error "hi def link swayConfigError Error
hi def link i3ConfigFloating Error hi def link i3ConfigFloating Error
@ -89,6 +97,8 @@ hi def link swayConfigFloatingMouseAction Type
hi def link swayConfigFocusKeyword Type hi def link swayConfigFocusKeyword Type
hi def link swayConfigSmartBorderKeyword Type hi def link swayConfigSmartBorderKeyword Type
hi def link swayConfigInputKeyword Type hi def link swayConfigInputKeyword Type
hi def link swayConfigSeatKeyword Type
hi def link swayConfigMouseWarpingType Type
hi def link swayConfigFocusFollowsMouseType Type hi def link swayConfigFocusFollowsMouseType Type
hi def link swayConfigBindGestureCommand Identifier hi def link swayConfigBindGestureCommand Identifier
hi def link swayConfigBindGestureDirection Constant hi def link swayConfigBindGestureDirection Constant

View File

@ -0,0 +1,14 @@
" Vim syntax file
" Language: MS Windows URL shortcut file
" Maintainer: ObserverOfTime <chronobserver@disroot.org>
" LastChange: 2023-06-04
" Quit when a syntax file was already loaded.
if exists("b:current_syntax")
finish
endif
" Just use the dosini syntax for now
runtime! syntax/dosini.vim
let b:current_syntax = "urlshortcut"

View File

@ -1,7 +1,7 @@
" Vim syntax file " Vim syntax file
" Language: X Pixmap " Language: X Pixmap
" Maintainer: Ronald Schild <rs@scutum.de> " Maintainer: Ronald Schild <rs@scutum.de>
" Last Change: 2023 May 11 " Last Change: 2023 May 24
" Version: 5.4n.2 " Version: 5.4n.2
" Jemma Nelson added termguicolors support " Jemma Nelson added termguicolors support
" Dominique Pellé fixed spelling support " Dominique Pellé fixed spelling support
@ -42,7 +42,7 @@ function s:CreateSyntax() abort
let values = split(s[1 : -2]) let values = split(s[1 : -2])
" Values string invalid, bail out " Values string invalid, bail out
if len(values) != 4 if len(values) != 4 && len(values) != 6 && len(values) != 7
return return
endif endif
@ -100,8 +100,8 @@ function s:CreateSyntax() abort
endif endif
" escape meta characters in patterns " escape meta characters in patterns
let s = escape(s, '/\*^$.~[] ') let s = escape(s, '/\*^$.~[]')
let chars = escape(chars, '/\*^$.~[] ') let chars = escape(chars, '/\*^$.~[]')
" now create syntax items " now create syntax items
" highlight the color string as normal string (no pixel string) " highlight the color string as normal string (no pixel string)