diff options
author | Ensar Sarajčić <es.ensar@gmail.com> | 2020-12-27 09:32:29 +0100 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2020-12-28 09:33:32 +0100 |
commit | 171d215f910cd21e6ec07eac20a05b0403444b48 (patch) | |
tree | 91ff8e781d656f001275f193913304a5a788cdd9 | |
parent | cc6109a751d9a41707991cc80827534a0459ba26 (diff) |
Add case from #1604 to VimL syntax-test source
-rw-r--r-- | tests/syntax-tests/highlighted/VimL/source.vim | 6 | ||||
-rw-r--r-- | tests/syntax-tests/source/VimL/source.vim | 6 |
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 @@ [38;2;102;217;239mecho[0m[38;2;248;248;242m [0m[38;2;230;219;116m"Hello"[0m[38;2;248;248;242m [0m[38;2;249;38;114misnot[0m[38;2;248;248;242m [0m[38;2;230;219;116m"Hello2"[0m [38;2;102;217;239mecho[0m[38;2;248;248;242m [0m[38;2;230;219;116m"Hello"[0m[38;2;248;248;242m [0m[38;2;249;38;114m=~[0m[38;2;248;248;242m [0m[38;2;230;219;116m"Hello2"[0m [38;2;102;217;239mecho[0m[38;2;248;248;242m [0m[38;2;230;219;116m"Hello"[0m[38;2;248;248;242m [0m[38;2;249;38;114m!~[0m[38;2;248;248;242m [0m[38;2;230;219;116m"Hello2"[0m +[38;2;102;217;239mecho[0m[38;2;248;248;242m [0m[38;2;230;219;116m"Hello"[0m[38;2;248;248;242m [0m[38;2;249;38;114m!~[0m[38;2;248;248;242m [0m[38;2;230;219;116m"Hello2"[0m + +[38;2;102;217;239mecho[0m[38;2;248;248;242m [0m[38;2;230;219;116m"/This/should/not/be/a/regex"[0m + +[38;2;117;113;94m" Error case from issue #1604 (https://github.com/sharkdp/bat/issues/1064)[0m +[38;2;102;217;239mset[0m[38;2;248;248;242m runtimepath[0m[38;2;249;38;114m=~[0m[38;2;246;170;17m/foo/[0m[38;2;248;248;242mbar[0m [38;2;102;217;239mlet[0m[38;2;248;248;242m [0m[38;2;255;255;255mg:dict[0m[38;2;248;248;242m = {}[0m [38;2;102;217;239mlet[0m[38;2;248;248;242m [0m[38;2;255;255;255mg:dict[0m[38;2;249;38;114m.[0m[38;2;248;248;242mitem = [[0m[38;2;230;219;116m'l1'[0m[38;2;248;248;242m, [0m[38;2;230;219;116m'l2'[0m[38;2;248;248;242m][0m 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'] |