diff options
author | Doug Kearns <dougkearns@gmail.com> | 2024-04-13 18:24:01 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-04-13 18:24:01 +0200 |
commit | ce06493aeb3d198d13de289ac39d1ed0f1604429 (patch) | |
tree | c28735f2ed271fd4dff060f4740bba557be4dcdd /runtime/syntax/testdir/input/vim9_legacy_header_fold.vim | |
parent | 5a9f7e6750727f81d0638e7ce0ee6bcb01742570 (diff) |
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: #14530
Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Diffstat (limited to 'runtime/syntax/testdir/input/vim9_legacy_header_fold.vim')
-rw-r--r-- | runtime/syntax/testdir/input/vim9_legacy_header_fold.vim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/runtime/syntax/testdir/input/vim9_legacy_header_fold.vim b/runtime/syntax/testdir/input/vim9_legacy_header_fold.vim new file mode 100644 index 0000000000..6e0e71e24d --- /dev/null +++ b/runtime/syntax/testdir/input/vim9_legacy_header_fold.vim @@ -0,0 +1,17 @@ +" VIM_TEST_SETUP let g:vimsyn_folding = "H" | set fdm=syntax +" comment + +if !has('vim9script') + # 42 " comment + source foo.vim + finish +endif + +" comment + +vim9script noclear + +# comment + + # string only recognised with leading char + "useless string" |