summaryrefslogtreecommitdiff
path: root/src/testdir/test_syntax.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-10-20 13:16:22 +0200
committerBram Moolenaar <Bram@vim.org>2019-10-20 13:16:22 +0200
commit82260afb0ec358f50df9816511f480d455a1cdac (patch)
treeea4e2bb13a8532117eb33f79ae38d3b61af372d6 /src/testdir/test_syntax.vim
parent2b78ab5d0c91c229715ae140a34978506343bde3 (diff)
downloadvim-git-82260afb0ec358f50df9816511f480d455a1cdac.tar.gz
patch 8.1.2189: syntax highlighting wrong for tabv8.1.2189
Problem: Syntax highlighting wrong for tab. Solution: Don't clear syntax attribute n_extra is non-zero.
Diffstat (limited to 'src/testdir/test_syntax.vim')
-rw-r--r--src/testdir/test_syntax.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testdir/test_syntax.vim b/src/testdir/test_syntax.vim
index 4f431d0cc..c87b3d65e 100644
--- a/src/testdir/test_syntax.vim
+++ b/src/testdir/test_syntax.vim
@@ -549,6 +549,7 @@ func Test_syntax_c()
\ ' printf("Just an example piece of C code\n");',
\ ' return 0x0ff;',
\ '}',
+ \ "\t\t ",
\ ' static void',
\ 'myFunction(const double count, struct nothing, long there) {',
\ "\t// 123: nothing to endif here",
@@ -565,6 +566,7 @@ func Test_syntax_c()
let buf = RunVimInTerminal('Xtest.c', #{rows: 22})
call term_sendkeys(buf, ":syn keyword Search Note\r")
+ call term_sendkeys(buf, ":syn match Error /^\\s\\+$/\r")
call term_sendkeys(buf, ":set hlsearch\r")
call term_sendkeys(buf, "/endif\r")
call term_sendkeys(buf, "vjfC")