summaryrefslogtreecommitdiffstats
path: root/runtime/syntax/testdir/input/vim9_ex_comment_strings.vim
diff options
context:
space:
mode:
authordkearns <dougkearns@gmail.com>2024-06-12 04:18:08 +1000
committerGitHub <noreply@github.com>2024-06-11 20:18:08 +0200
commit959c3c887b2e52c7141b2a09a53634481911b1b7 (patch)
tree86fcec862f89b0aaf51d790d6716f74fbced81ba /runtime/syntax/testdir/input/vim9_ex_comment_strings.vim
parentb4e648a0066940e0e8b513ff2e7347b5a3473694 (diff)
runtime(vim): Update base-syntax, configurable comment string highlighting (#14931)
Allow highlighting of strings within comments to be disabled by setting g:vimsyn_comment_strings to false. Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/syntax/testdir/input/vim9_ex_comment_strings.vim')
-rw-r--r--runtime/syntax/testdir/input/vim9_ex_comment_strings.vim22
1 files changed, 22 insertions, 0 deletions
diff --git a/runtime/syntax/testdir/input/vim9_ex_comment_strings.vim b/runtime/syntax/testdir/input/vim9_ex_comment_strings.vim
new file mode 100644
index 0000000000..fd02c1a60a
--- /dev/null
+++ b/runtime/syntax/testdir/input/vim9_ex_comment_strings.vim
@@ -0,0 +1,22 @@
+vim9script
+
+# Vim comment strings
+# VIM_TEST_SETUP let g:vimsyn_comment_strings = v:true
+
+# pre "string" post
+
+function Foo()
+ " pre "string" post
+endfunction
+
+def Bar()
+ # pre "string" post
+enddef
+
+command Foo {
+ # pre "string" post
+}
+
+autocmd BufNewFile * {
+ # pre "string" post
+}