Mercurial > vim
annotate runtime/syntax/ppd.vim @ 29579:f7a64755dbe9 v9.0.0130
patch 9.0.0130: cursor position wrong when inserting around virtual text
Commit: https://github.com/vim/vim/commit/1f4ee19eefecd8f70b7cbe8ee9db8ace6352e23e
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Aug 1 15:52:55 2022 +0100
patch 9.0.0130: cursor position wrong when inserting around virtual text
Problem: Cursor position wrong when inserting around virtual text.
Solution: Update the cursor position properly.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 01 Aug 2022 17:00:04 +0200 |
parents | 46763b01cd9a |
children | d6dde6229b36 |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: PPD (PostScript printer description) file | |
3 " Maintainer: Bjoern Jacke <bjacke@suse.de> | |
4 " Last Change: 2001-10-06 | |
5 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
6 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
7 if exists("b:current_syntax") |
7 | 8 finish |
9 endif | |
10 | |
11 | |
12 syn match ppdComment "^\*%.*" | |
13 syn match ppdDef "\*[a-zA-Z0-9]\+" | |
14 syn match ppdDefine "\*[a-zA-Z0-9\-_]\+:" | |
15 syn match ppdUI "\*[a-zA-Z]*\(Open\|Close\)UI" | |
16 syn match ppdUIGroup "\*[a-zA-Z]*\(Open\|Close\)Group" | |
17 syn match ppdGUIText "/.*:" | |
18 syn match ppdContraints "^*UIConstraints:" | |
19 | |
20 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
21 " Only when an item doesn't have highlighting yet |
7 | 22 |
23 | |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
24 hi def link ppdComment Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
25 hi def link ppdDefine Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
26 hi def link ppdUI Function |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
27 hi def link ppdUIGroup Function |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
28 hi def link ppdDef String |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
29 hi def link ppdGUIText Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
30 hi def link ppdContraints Special |
7 | 31 |
32 | |
33 let b:current_syntax = "ppd" | |
34 | |
35 " vim: ts=8 |