Mercurial > vim
comparison src/testdir/test_textprop.vim @ 18570:0ac88fdbf089 v8.1.2279
patch 8.1.2279: computation of highlight attributes is too complicated
Commit: https://github.com/vim/vim/commit/dbd4316806389e3c2240b48cc6c4d209cb1665fd
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 9 21:28:14 2019 +0100
patch 8.1.2279: computation of highlight attributes is too complicated
Problem: Computation of highlight attributes is too complicated.
Solution: Simplify the attribute computation and make it more consistent.
(closes #5190) Fix that 'combine' set to zero doesn't work.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 09 Nov 2019 21:30:03 +0100 |
parents | 967ca19425e3 |
children | 63d855ad505c |
comparison
equal
deleted
inserted
replaced
18569:404b9c998acf | 18570:0ac88fdbf089 |
---|---|
676 \ "call prop_type_add('long', {'highlight': 'NumberProp'})", | 676 \ "call prop_type_add('long', {'highlight': 'NumberProp'})", |
677 \ "call prop_type_change('long', {'highlight': 'LongProp'})", | 677 \ "call prop_type_change('long', {'highlight': 'LongProp'})", |
678 \ "call prop_type_add('start', {'highlight': 'NumberProp', 'start_incl': 1})", | 678 \ "call prop_type_add('start', {'highlight': 'NumberProp', 'start_incl': 1})", |
679 \ "call prop_type_add('end', {'highlight': 'NumberProp', 'end_incl': 1})", | 679 \ "call prop_type_add('end', {'highlight': 'NumberProp', 'end_incl': 1})", |
680 \ "call prop_type_add('both', {'highlight': 'NumberProp', 'start_incl': 1, 'end_incl': 1})", | 680 \ "call prop_type_add('both', {'highlight': 'NumberProp', 'start_incl': 1, 'end_incl': 1})", |
681 \ "call prop_type_add('background', {'highlight': 'NumberProp', 'combine': 1})", | 681 \ "call prop_type_add('background', {'highlight': 'BackgroundProp', 'combine': 0})", |
682 \ "eval 'background'->prop_type_change({'highlight': 'BackgroundProp'})", | 682 \ "call prop_type_add('backgroundcomb', {'highlight': 'NumberProp', 'combine': 1})", |
683 \ "eval 'backgroundcomb'->prop_type_change({'highlight': 'BackgroundProp'})", | |
683 \ "call prop_type_add('error', {'highlight': 'UnderlineProp', 'combine': 1})", | 684 \ "call prop_type_add('error', {'highlight': 'UnderlineProp', 'combine': 1})", |
684 \ "call prop_add(1, 4, {'end_lnum': 3, 'end_col': 3, 'type': 'long'})", | 685 \ "call prop_add(1, 4, {'end_lnum': 3, 'end_col': 3, 'type': 'long'})", |
685 \ "call prop_add(2, 9, {'length': 3, 'type': 'number'})", | 686 \ "call prop_add(2, 9, {'length': 3, 'type': 'number'})", |
686 \ "call prop_add(2, 24, {'length': 4, 'type': 'number'})", | 687 \ "call prop_add(2, 24, {'length': 4, 'type': 'number'})", |
687 \ "call prop_add(3, 3, {'length': 2, 'type': 'number'})", | 688 \ "call prop_add(3, 3, {'length': 2, 'type': 'number'})", |
688 \ "call prop_add(3, 7, {'length': 2, 'type': 'start'})", | 689 \ "call prop_add(3, 7, {'length': 2, 'type': 'start'})", |
689 \ "call prop_add(3, 11, {'length': 2, 'type': 'end'})", | 690 \ "call prop_add(3, 11, {'length': 2, 'type': 'end'})", |
690 \ "call prop_add(3, 15, {'length': 2, 'type': 'both'})", | 691 \ "call prop_add(3, 15, {'length': 2, 'type': 'both'})", |
691 \ "call prop_add(4, 12, {'length': 10, 'type': 'background'})", | 692 \ "call prop_add(4, 6, {'length': 3, 'type': 'background'})", |
693 \ "call prop_add(4, 12, {'length': 10, 'type': 'backgroundcomb'})", | |
692 \ "call prop_add(4, 17, {'length': 5, 'type': 'error'})", | 694 \ "call prop_add(4, 17, {'length': 5, 'type': 'error'})", |
693 \ "call prop_add(5, 7, {'length': 4, 'type': 'long'})", | 695 \ "call prop_add(5, 7, {'length': 4, 'type': 'long'})", |
694 \ "call prop_add(6, 1, {'length': 8, 'type': 'long'})", | 696 \ "call prop_add(6, 1, {'length': 8, 'type': 'long'})", |
695 \ "call prop_add(8, 1, {'length': 1, 'type': 'long'})", | 697 \ "call prop_add(8, 1, {'length': 1, 'type': 'long'})", |
696 \ "call prop_add(8, 11, {'length': 4, 'type': 'long'})", | 698 \ "call prop_add(8, 11, {'length': 4, 'type': 'long'})", |