Mercurial > vim
annotate runtime/syntax/slpspi.vim @ 34397:f0cdbcf53264 v9.1.0124
patch 9.1.0124: display of below/right virtual text with non-virtual text overlap
Commit: https://github.com/vim/vim/commit/8055721c2d30f21cfabe7453014f526e7becfc06
Author: Dylan Thacker-Smith <dylan.ah.smith@gmail.com>
Date: Wed Feb 21 21:00:59 2024 +0100
patch 9.1.0124: display of below/right virtual text with non-virtual text overlap
Problem: Virtual text with text_align 'right'/'below' wasn't being
used when a non-virtual text property overlaps with the end of
the line. This was because the non-virtual text property had a
higher priority, preventing the virtual text from being used.
Solution: Fix the sorting of text properties so virtual text properties
have a higher priority than non-virtual text properties.
(Dylan Thacker-Smith)
related: #14063
Signed-off-by: Dylan Thacker-Smith <dylan.ah.smith@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 21 Feb 2024 21:15:03 +0100 |
parents | 1218c5353e2b |
children |
rev | line source |
---|---|
389 | 1 " Vim syntax file |
11062 | 2 " Language: RFC 2614 - An API for Service Location SPI file |
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se> | |
4 " Latest Revision: 2006-04-19 | |
389 | 5 |
6 if exists("b:current_syntax") | |
7 finish | |
8 endif | |
9 | |
10 let s:cpo_save = &cpo | |
11 set cpo&vim | |
12 | |
13 syn keyword slpspiTodo contained TODO FIXME XXX NOTE | |
14 | |
15 syn region slpspiComment display oneline start='^[#;]' end='$' | |
16 \ contains=slpspiTodo,@Spell | |
17 | |
18 syn match slpspiBegin display '^' | |
19 \ nextgroup=slpspiKeyType, | |
20 \ slpspiComment skipwhite | |
21 | |
22 syn keyword slpspiKeyType contained PRIVATE PUBLIC | |
23 \ nextgroup=slpspiString skipwhite | |
24 | |
25 syn match slpspiString contained '\S\+' | |
26 \ nextgroup=slpspiKeyFile skipwhite | |
27 | |
28 syn match slpspiKeyFile contained '\S\+' | |
29 | |
30 hi def link slpspiTodo Todo | |
31 hi def link slpspiComment Comment | |
32 hi def link slpspiKeyType Type | |
33 hi def link slpspiString Identifier | |
34 hi def link slpspiKeyFile String | |
35 | |
36 let b:current_syntax = "slpspi" | |
37 | |
38 let &cpo = s:cpo_save | |
39 unlet s:cpo_save |