Mercurial > vim
comparison src/testdir/test_syn_attr.vim @ 29328:60977de70684 v9.0.0007
patch 9.0.0007: no support for double, dotted and dashed underlines
Commit: https://github.com/vim/vim/commit/84f546363068e4ddfe14a8a2a2322bb8d3a25417
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jun 29 18:39:11 2022 +0100
patch 9.0.0007: no support for double, dotted and dashed underlines
Problem: No support for double, dotted and dashed underlines.
Solution: Add the termcap entries and highlight modes. (closes https://github.com/vim/vim/issues/9553)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 29 Jun 2022 19:45:03 +0200 |
parents | 546bdeef35f1 |
children | 9b8ab82e3b0b |
comparison
equal
deleted
inserted
replaced
29327:4675995a5b8a | 29328:60977de70684 |
---|---|
9 call assert_equal('1', synIDattr(hlID("Mine"), "bold", 'term')) | 9 call assert_equal('1', synIDattr(hlID("Mine"), "bold", 'term')) |
10 call assert_equal('1', synIDattr(hlID("Mine"), "italic", 'cterm')) | 10 call assert_equal('1', synIDattr(hlID("Mine"), "italic", 'cterm')) |
11 hi Mine term=reverse cterm=inverse | 11 hi Mine term=reverse cterm=inverse |
12 call assert_equal('1', synIDattr(hlID("Mine"), "reverse", 'term')) | 12 call assert_equal('1', synIDattr(hlID("Mine"), "reverse", 'term')) |
13 call assert_equal('1', synIDattr(hlID("Mine"), "inverse", 'cterm')) | 13 call assert_equal('1', synIDattr(hlID("Mine"), "inverse", 'cterm')) |
14 | |
14 hi Mine term=underline cterm=standout gui=undercurl | 15 hi Mine term=underline cterm=standout gui=undercurl |
15 call assert_equal('1', synIDattr(hlID("Mine"), "underline", 'term')) | 16 call assert_equal('1', synIDattr(hlID("Mine"), "underline", 'term')) |
16 call assert_equal('1', synIDattr(hlID("Mine"), "standout", 'cterm')) | 17 call assert_equal('1', synIDattr(hlID("Mine"), "standout", 'cterm')) |
17 call assert_equal('1', synIDattr("Mine"->hlID(), "undercurl", 'gui')) | 18 call assert_equal('1', synIDattr("Mine"->hlID(), "undercurl", 'gui')) |
19 | |
20 hi Mine term=underdouble cterm=underdotted gui=underdashed | |
21 call assert_equal('1', synIDattr(hlID("Mine"), "underdouble", 'term')) | |
22 call assert_equal('1', synIDattr(hlID("Mine"), "underdotted", 'cterm')) | |
23 call assert_equal('1', synIDattr("Mine"->hlID(), "underdashed", 'gui')) | |
24 | |
18 hi Mine gui=strikethrough | 25 hi Mine gui=strikethrough |
19 call assert_equal('1', synIDattr(hlID("Mine"), "strikethrough", 'gui')) | 26 call assert_equal('1', synIDattr(hlID("Mine"), "strikethrough", 'gui')) |
20 hi Mine term=NONE cterm=NONE gui=NONE | 27 hi Mine term=NONE cterm=NONE gui=NONE |
21 call assert_equal('', synIDattr(hlID("Mine"), "bold", 'term')) | 28 call assert_equal('', synIDattr(hlID("Mine"), "bold", 'term')) |
22 call assert_equal('', synIDattr(hlID("Mine"), "italic", 'cterm')) | 29 call assert_equal('', synIDattr(hlID("Mine"), "italic", 'cterm')) |