summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEnsar Sarajčić <es.ensar@gmail.com>2020-12-27 09:32:29 +0100
committerDavid Peter <sharkdp@users.noreply.github.com>2020-12-28 09:33:32 +0100
commit171d215f910cd21e6ec07eac20a05b0403444b48 (patch)
tree91ff8e781d656f001275f193913304a5a788cdd9
parentcc6109a751d9a41707991cc80827534a0459ba26 (diff)
Add case from #1604 to VimL syntax-test source
-rw-r--r--tests/syntax-tests/highlighted/VimL/source.vim6
-rw-r--r--tests/syntax-tests/source/VimL/source.vim6
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/syntax-tests/highlighted/VimL/source.vim b/tests/syntax-tests/highlighted/VimL/source.vim
index a3dbe2d1..37c4e953 100644
--- a/tests/syntax-tests/highlighted/VimL/source.vim
+++ b/tests/syntax-tests/highlighted/VimL/source.vim
@@ -69,6 +69,12 @@
echo "Hello" isnot "Hello2"
echo "Hello" =~ "Hello2"
echo "Hello" !~ "Hello2"
+echo "Hello" !~ "Hello2"
+
+echo "/This/should/not/be/a/regex"
+
+" Error case from issue #1604 (https://github.com/sharkdp/bat/issues/1064)
+set runtimepath=~/foo/bar
let g:dict = {}
let g:dict.item = ['l1', 'l2']
diff --git a/tests/syntax-tests/source/VimL/source.vim b/tests/syntax-tests/source/VimL/source.vim
index 85e536ab..15cd3a81 100644
--- a/tests/syntax-tests/source/VimL/source.vim
+++ b/tests/syntax-tests/source/VimL/source.vim
@@ -69,6 +69,12 @@ echo "Hello" is "Hello2"
echo "Hello" isnot "Hello2"
echo "Hello" =~ "Hello2"
echo "Hello" !~ "Hello2"
+echo "Hello" !~ "Hello2"
+
+echo "/This/should/not/be/a/regex"
+
+" Error case from issue #1604 (https://github.com/sharkdp/bat/issues/1064)
+set runtimepath=~/foo/bar
let g:dict = {}
let g:dict.item = ['l1', 'l2']