mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
vim-patch:ae62fe5: runtime(doc): 'filetype', 'syntax' and 'keymap' only allow alphanumeric + some characters (#30630)
closes: vim/vim#15783
ae62fe5c28
Co-authored-by: Milly <milly.ca@gmail.com>
This commit is contained in:
parent
6a2f8958e8
commit
aeea63081c
@ -2540,14 +2540,14 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
/* vim: set filetype=idl : */
|
/* vim: set filetype=idl : */
|
||||||
< |FileType| |filetypes|
|
< |FileType| |filetypes|
|
||||||
When a dot appears in the value then this separates two filetype
|
When a dot appears in the value then this separates two filetype
|
||||||
names. Example: >c
|
names, it should therefore not be used for a filetype. Example: >c
|
||||||
/* vim: set filetype=c.doxygen : */
|
/* vim: set filetype=c.doxygen : */
|
||||||
< This will use the "c" filetype first, then the "doxygen" filetype.
|
< This will use the "c" filetype first, then the "doxygen" filetype.
|
||||||
This works both for filetype plugins and for syntax files. More than
|
This works both for filetype plugins and for syntax files. More than
|
||||||
one dot may appear.
|
one dot may appear.
|
||||||
This option is not copied to another buffer, independent of the 's' or
|
This option is not copied to another buffer, independent of the 's' or
|
||||||
'S' flag in 'cpoptions'.
|
'S' flag in 'cpoptions'.
|
||||||
Only normal file name characters can be used, `/\*?[|<>` are illegal.
|
Only alphanumeric characters, '-' and '_' can be used.
|
||||||
|
|
||||||
*'fillchars'* *'fcs'*
|
*'fillchars'* *'fcs'*
|
||||||
'fillchars' 'fcs' string (default "")
|
'fillchars' 'fcs' string (default "")
|
||||||
@ -3700,7 +3700,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
Setting this option to a valid keymap name has the side effect of
|
Setting this option to a valid keymap name has the side effect of
|
||||||
setting 'iminsert' to one, so that the keymap becomes effective.
|
setting 'iminsert' to one, so that the keymap becomes effective.
|
||||||
'imsearch' is also set to one, unless it was -1
|
'imsearch' is also set to one, unless it was -1
|
||||||
Only normal file name characters can be used, `/\*?[|<>` are illegal.
|
Only alphanumeric characters, '.', '-' and '_' can be used.
|
||||||
|
|
||||||
*'keymodel'* *'km'*
|
*'keymodel'* *'km'*
|
||||||
'keymodel' 'km' string (default "")
|
'keymodel' 'km' string (default "")
|
||||||
@ -6404,7 +6404,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
Syntax autocommand event is triggered with the value as argument.
|
Syntax autocommand event is triggered with the value as argument.
|
||||||
This option is not copied to another buffer, independent of the 's' or
|
This option is not copied to another buffer, independent of the 's' or
|
||||||
'S' flag in 'cpoptions'.
|
'S' flag in 'cpoptions'.
|
||||||
Only normal file name characters can be used, `/\*?[|<>` are illegal.
|
Only alphanumeric characters, '.', '-' and '_' can be used.
|
||||||
|
|
||||||
*'tabclose'* *'tcl'*
|
*'tabclose'* *'tcl'*
|
||||||
'tabclose' 'tcl' string (default "")
|
'tabclose' 'tcl' string (default "")
|
||||||
|
8
runtime/lua/vim/_meta/options.lua
generated
8
runtime/lua/vim/_meta/options.lua
generated
@ -2218,7 +2218,7 @@ vim.go.fic = vim.go.fileignorecase
|
|||||||
--- ```
|
--- ```
|
||||||
--- `FileType` `filetypes`
|
--- `FileType` `filetypes`
|
||||||
--- When a dot appears in the value then this separates two filetype
|
--- When a dot appears in the value then this separates two filetype
|
||||||
--- names. Example: >c
|
--- names, it should therefore not be used for a filetype. Example: >c
|
||||||
--- /* vim: set filetype=c.doxygen : */
|
--- /* vim: set filetype=c.doxygen : */
|
||||||
--- ```
|
--- ```
|
||||||
--- This will use the "c" filetype first, then the "doxygen" filetype.
|
--- This will use the "c" filetype first, then the "doxygen" filetype.
|
||||||
@ -2226,7 +2226,7 @@ vim.go.fic = vim.go.fileignorecase
|
|||||||
--- one dot may appear.
|
--- one dot may appear.
|
||||||
--- This option is not copied to another buffer, independent of the 's' or
|
--- This option is not copied to another buffer, independent of the 's' or
|
||||||
--- 'S' flag in 'cpoptions'.
|
--- 'S' flag in 'cpoptions'.
|
||||||
--- Only normal file name characters can be used, `/\*?[|<>` are illegal.
|
--- Only alphanumeric characters, '-' and '_' can be used.
|
||||||
---
|
---
|
||||||
--- @type string
|
--- @type string
|
||||||
vim.o.filetype = ""
|
vim.o.filetype = ""
|
||||||
@ -3604,7 +3604,7 @@ vim.go.jop = vim.go.jumpoptions
|
|||||||
--- Setting this option to a valid keymap name has the side effect of
|
--- Setting this option to a valid keymap name has the side effect of
|
||||||
--- setting 'iminsert' to one, so that the keymap becomes effective.
|
--- setting 'iminsert' to one, so that the keymap becomes effective.
|
||||||
--- 'imsearch' is also set to one, unless it was -1
|
--- 'imsearch' is also set to one, unless it was -1
|
||||||
--- Only normal file name characters can be used, `/\*?[|<>` are illegal.
|
--- Only alphanumeric characters, '.', '-' and '_' can be used.
|
||||||
---
|
---
|
||||||
--- @type string
|
--- @type string
|
||||||
vim.o.keymap = ""
|
vim.o.keymap = ""
|
||||||
@ -6874,7 +6874,7 @@ vim.bo.smc = vim.bo.synmaxcol
|
|||||||
--- Syntax autocommand event is triggered with the value as argument.
|
--- Syntax autocommand event is triggered with the value as argument.
|
||||||
--- This option is not copied to another buffer, independent of the 's' or
|
--- This option is not copied to another buffer, independent of the 's' or
|
||||||
--- 'S' flag in 'cpoptions'.
|
--- 'S' flag in 'cpoptions'.
|
||||||
--- Only normal file name characters can be used, `/\*?[|<>` are illegal.
|
--- Only alphanumeric characters, '.', '-' and '_' can be used.
|
||||||
---
|
---
|
||||||
--- @type string
|
--- @type string
|
||||||
vim.o.syntax = ""
|
vim.o.syntax = ""
|
||||||
|
@ -2832,14 +2832,14 @@ return {
|
|||||||
/* vim: set filetype=idl : */
|
/* vim: set filetype=idl : */
|
||||||
< |FileType| |filetypes|
|
< |FileType| |filetypes|
|
||||||
When a dot appears in the value then this separates two filetype
|
When a dot appears in the value then this separates two filetype
|
||||||
names. Example: >c
|
names, it should therefore not be used for a filetype. Example: >c
|
||||||
/* vim: set filetype=c.doxygen : */
|
/* vim: set filetype=c.doxygen : */
|
||||||
< This will use the "c" filetype first, then the "doxygen" filetype.
|
< This will use the "c" filetype first, then the "doxygen" filetype.
|
||||||
This works both for filetype plugins and for syntax files. More than
|
This works both for filetype plugins and for syntax files. More than
|
||||||
one dot may appear.
|
one dot may appear.
|
||||||
This option is not copied to another buffer, independent of the 's' or
|
This option is not copied to another buffer, independent of the 's' or
|
||||||
'S' flag in 'cpoptions'.
|
'S' flag in 'cpoptions'.
|
||||||
Only normal file name characters can be used, `/\*?[|<>` are illegal.
|
Only alphanumeric characters, '-' and '_' can be used.
|
||||||
]=],
|
]=],
|
||||||
full_name = 'filetype',
|
full_name = 'filetype',
|
||||||
noglob = true,
|
noglob = true,
|
||||||
@ -4571,7 +4571,7 @@ return {
|
|||||||
Setting this option to a valid keymap name has the side effect of
|
Setting this option to a valid keymap name has the side effect of
|
||||||
setting 'iminsert' to one, so that the keymap becomes effective.
|
setting 'iminsert' to one, so that the keymap becomes effective.
|
||||||
'imsearch' is also set to one, unless it was -1
|
'imsearch' is also set to one, unless it was -1
|
||||||
Only normal file name characters can be used, `/\*?[|<>` are illegal.
|
Only alphanumeric characters, '.', '-' and '_' can be used.
|
||||||
]=],
|
]=],
|
||||||
full_name = 'keymap',
|
full_name = 'keymap',
|
||||||
normal_fname_chars = true,
|
normal_fname_chars = true,
|
||||||
@ -8542,7 +8542,7 @@ return {
|
|||||||
Syntax autocommand event is triggered with the value as argument.
|
Syntax autocommand event is triggered with the value as argument.
|
||||||
This option is not copied to another buffer, independent of the 's' or
|
This option is not copied to another buffer, independent of the 's' or
|
||||||
'S' flag in 'cpoptions'.
|
'S' flag in 'cpoptions'.
|
||||||
Only normal file name characters can be used, `/\*?[|<>` are illegal.
|
Only alphanumeric characters, '.', '-' and '_' can be used.
|
||||||
]=],
|
]=],
|
||||||
full_name = 'syntax',
|
full_name = 'syntax',
|
||||||
noglob = true,
|
noglob = true,
|
||||||
|
Loading…
Reference in New Issue
Block a user