summaryrefslogtreecommitdiff
path: root/src/testdir/test_vim9_script.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-06-02 15:28:15 +0200
committerBram Moolenaar <Bram@vim.org>2021-06-02 15:28:15 +0200
commit0f37e3561db95b0ef0b636588bbd30297e377384 (patch)
tree77106af00fa3c877b7611d90741f399d9118396e /src/testdir/test_vim9_script.vim
parenta2e468fcac7523ae6a0ab65db5196684801fa2d1 (diff)
downloadvim-git-0f37e3561db95b0ef0b636588bbd30297e377384.tar.gz
patch 8.2.2925: Vim9: line continuation comment uses legacy syntaxv8.2.2925
Problem: Vim9: line continuation comment uses legacy syntax. Solution: Check for #\ instead of "\. (closes #8295)
Diffstat (limited to 'src/testdir/test_vim9_script.vim')
-rw-r--r--src/testdir/test_vim9_script.vim18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_script.vim b/src/testdir/test_vim9_script.vim
index cdda61321..ee324950f 100644
--- a/src/testdir/test_vim9_script.vim
+++ b/src/testdir/test_vim9_script.vim
@@ -3074,6 +3074,24 @@ def Test_vim9_comment()
'func Test() # comment',
'endfunc',
], 'E488:')
+
+ var lines =<< trim END
+ vim9script
+ syn region Text
+ \ start='foo'
+ #\ comment
+ \ end='bar'
+ END
+ CheckScriptSuccess(lines)
+
+ lines =<< trim END
+ vim9script
+ syn region Text
+ \ start='foo'
+ "\ comment
+ \ end='bar'
+ END
+ CheckScriptFailure(lines, 'E399:')
enddef
def Test_vim9_comment_gui()