comparison src/testdir/test_syntax.vim @ 18390:c34ee31d0878 v8.1.2189

patch 8.1.2189: syntax highlighting wrong for tab Commit: https://github.com/vim/vim/commit/82260afb0ec358f50df9816511f480d455a1cdac Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 20 13:16:22 2019 +0200 patch 8.1.2189: syntax highlighting wrong for tab Problem: Syntax highlighting wrong for tab. Solution: Don't clear syntax attribute n_extra is non-zero.
author Bram Moolenaar <Bram@vim.org>
date Sun, 20 Oct 2019 13:30:04 +0200
parents 3fd7d544eedb
children e15c1d8a6b99
comparison
equal deleted inserted replaced
18389:1ee8267f1258 18390:c34ee31d0878
547 \ ' int used;', 547 \ ' int used;',
548 \ '#endif', 548 \ '#endif',
549 \ ' printf("Just an example piece of C code\n");', 549 \ ' printf("Just an example piece of C code\n");',
550 \ ' return 0x0ff;', 550 \ ' return 0x0ff;',
551 \ '}', 551 \ '}',
552 \ "\t\t ",
552 \ ' static void', 553 \ ' static void',
553 \ 'myFunction(const double count, struct nothing, long there) {', 554 \ 'myFunction(const double count, struct nothing, long there) {',
554 \ "\t// 123: nothing to endif here", 555 \ "\t// 123: nothing to endif here",
555 \ "\tfor (int i = 0; i < count; ++i) {", 556 \ "\tfor (int i = 0; i < count; ++i) {",
556 \ "\t break;", 557 \ "\t break;",
563 " response to t_RB corrects it to "light". 564 " response to t_RB corrects it to "light".
564 let $COLORFGBG = '15;0' 565 let $COLORFGBG = '15;0'
565 566
566 let buf = RunVimInTerminal('Xtest.c', #{rows: 22}) 567 let buf = RunVimInTerminal('Xtest.c', #{rows: 22})
567 call term_sendkeys(buf, ":syn keyword Search Note\r") 568 call term_sendkeys(buf, ":syn keyword Search Note\r")
569 call term_sendkeys(buf, ":syn match Error /^\\s\\+$/\r")
568 call term_sendkeys(buf, ":set hlsearch\r") 570 call term_sendkeys(buf, ":set hlsearch\r")
569 call term_sendkeys(buf, "/endif\r") 571 call term_sendkeys(buf, "/endif\r")
570 call term_sendkeys(buf, "vjfC") 572 call term_sendkeys(buf, "vjfC")
571 call VerifyScreenDump(buf, 'Test_syntax_c_01', {}) 573 call VerifyScreenDump(buf, 'Test_syntax_c_01', {})
572 574