diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2024-04-14 07:35:08 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-14 07:35:08 +0800 |
| commit | a92822835521574710a830a7de0e692bf7517fb8 (patch) | |
| tree | ea215aa28438c80aa33a394b8db37c945ed05b92 /runtime/doc | |
| parent | 7e9eade7eaabd2b16a71b0ecc39b0ae0776b1e07 (diff) | |
| download | rneovim-a92822835521574710a830a7de0e692bf7517fb8.tar.gz rneovim-a92822835521574710a830a7de0e692bf7517fb8.tar.bz2 rneovim-a92822835521574710a830a7de0e692bf7517fb8.zip | |
vim-patch:ce06493aeb3d (#28321)
runtime(vim): Update base-syntax, add legacy header folding
Allow for syntax-based folding of Vim9 script legacy header regions.
This is enabled with the "H" flag of the g:vimsyn_folding config variable.
closes: vim/vim#14530
https://github.com/vim/vim/commit/ce06493aeb3d198d13de289ac39d1ed0f1604429
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
Diffstat (limited to 'runtime/doc')
| -rw-r--r-- | runtime/doc/syntax.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt index 2d7e21cd2f..2589133cf4 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -3271,7 +3271,7 @@ The g:vimsyn_embed option allows users to select what, if any, types of embedded script highlighting they wish to have. > g:vimsyn_embed == 0 : disable (don't embed any scripts) - g:vimsyn_embed == 'lPr' : support embedded lua, python and ruby + g:vimsyn_embed == 'lpPr' : support embedded lua, perl, python and ruby < This option is disabled by default. *g:vimsyn_folding* @@ -3281,7 +3281,11 @@ Some folding is now supported with syntax/vim.vim: > g:vimsyn_folding == 0 or doesn't exist: no syntax-based folding g:vimsyn_folding =~ 'a' : augroups g:vimsyn_folding =~ 'f' : fold functions + g:vimsyn_folding =~ 'h' : fold heredocs + g:vimsyn_folding =~ 'l' : fold lua script + g:vimsyn_folding =~ 'p' : fold perl script g:vimsyn_folding =~ 'P' : fold python script + g:vimsyn_folding =~ 'r' : fold ruby script < *g:vimsyn_noerror* Not all error highlighting that syntax/vim.vim does may be correct; Vim script |