Mercurial > vim
annotate runtime/syntax/pine.vim @ 34294:f5ac23c97a9e v9.1.0082
patch 9.1.0082: Redrawing can be improved when deleting lines with 'cursorline'
Commit: https://github.com/vim/vim/commit/7ce34c9a947b17a8b5e81e7c2335a63552182d10
Author: zeertzjq <zeertzjq@outlook.com>
Date: Thu Feb 8 11:34:55 2024 +0100
patch 9.1.0082: Redrawing can be improved when deleting lines with 'cursorline'
Problem: Redrawing can be improved when deleting lines with 'cursorline'.
Solution: Use smarter invalidation and adjustment. Remove unnecessary
UPD_VALID as it is already set at the top of the loop. Make
the test for #4862 fail without the fix.
(zeertzjq)
closes: #13986
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 08 Feb 2024 11:45:03 +0100 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: Pine (email program) run commands | |
3 " Maintainer: David Pascoe <pascoedj@spamcop.net> | |
4 " Last Change: Thu Feb 27 10:18:48 WST 2003, update for pine 4.53 | |
5 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
4119
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:
4119
diff
changeset
|
7 if exists("b:current_syntax") |
7 | 8 finish |
9 endif | |
10 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
4119
diff
changeset
|
11 setlocal iskeyword=@,48-57,_,128-167,224-235,- |
7 | 12 |
13 syn keyword pineConfig addrbook-sort-rule | |
14 syn keyword pineConfig address-book | |
15 syn keyword pineConfig addressbook-formats | |
16 syn keyword pineConfig alt-addresses | |
17 syn keyword pineConfig bugs-additional-data | |
18 syn keyword pineConfig bugs-address | |
19 syn keyword pineConfig bugs-fullname | |
20 syn keyword pineConfig character-set | |
21 syn keyword pineConfig color-style | |
22 syn keyword pineConfig compose-mime | |
23 syn keyword pineConfig composer-wrap-column | |
24 syn keyword pineConfig current-indexline-style | |
25 syn keyword pineConfig cursor-style | |
26 syn keyword pineConfig customized-hdrs | |
27 syn keyword pineConfig debug-memory | |
28 syn keyword pineConfig default-composer-hdrs | |
29 syn keyword pineConfig default-fcc | |
30 syn keyword pineConfig default-saved-msg-folder | |
31 syn keyword pineConfig disable-these-authenticators | |
32 syn keyword pineConfig disable-these-drivers | |
33 syn keyword pineConfig display-filters | |
34 syn keyword pineConfig download-command | |
35 syn keyword pineConfig download-command-prefix | |
36 syn keyword pineConfig editor | |
37 syn keyword pineConfig elm-style-save | |
38 syn keyword pineConfig empty-header-message | |
39 syn keyword pineConfig fcc-name-rule | |
40 syn keyword pineConfig feature-level | |
41 syn keyword pineConfig feature-list | |
42 syn keyword pineConfig file-directory | |
43 syn keyword pineConfig folder-collections | |
44 syn keyword pineConfig folder-extension | |
45 syn keyword pineConfig folder-sort-rule | |
46 syn keyword pineConfig font-char-set | |
47 syn keyword pineConfig font-name | |
48 syn keyword pineConfig font-size | |
49 syn keyword pineConfig font-style | |
50 syn keyword pineConfig forced-abook-entry | |
51 syn keyword pineConfig form-letter-folder | |
52 syn keyword pineConfig global-address-book | |
53 syn keyword pineConfig goto-default-rule | |
54 syn keyword pineConfig header-in-reply | |
55 syn keyword pineConfig image-viewer | |
56 syn keyword pineConfig inbox-path | |
57 syn keyword pineConfig incoming-archive-folders | |
58 syn keyword pineConfig incoming-folders | |
59 syn keyword pineConfig incoming-startup-rule | |
60 syn keyword pineConfig index-answered-background-color | |
61 syn keyword pineConfig index-answered-foreground-color | |
62 syn keyword pineConfig index-deleted-background-color | |
63 syn keyword pineConfig index-deleted-foreground-color | |
64 syn keyword pineConfig index-format | |
65 syn keyword pineConfig index-important-background-color | |
66 syn keyword pineConfig index-important-foreground-color | |
67 syn keyword pineConfig index-new-background-color | |
68 syn keyword pineConfig index-new-foreground-color | |
69 syn keyword pineConfig index-recent-background-color | |
70 syn keyword pineConfig index-recent-foreground-color | |
71 syn keyword pineConfig index-to-me-background-color | |
72 syn keyword pineConfig index-to-me-foreground-color | |
73 syn keyword pineConfig index-unseen-background-color | |
74 syn keyword pineConfig index-unseen-foreground-color | |
75 syn keyword pineConfig initial-keystroke-list | |
76 syn keyword pineConfig kblock-passwd-count | |
77 syn keyword pineConfig keylabel-background-color | |
78 syn keyword pineConfig keylabel-foreground-color | |
79 syn keyword pineConfig keyname-background-color | |
80 syn keyword pineConfig keyname-foreground-color | |
81 syn keyword pineConfig last-time-prune-questioned | |
82 syn keyword pineConfig last-version-used | |
83 syn keyword pineConfig ldap-servers | |
84 syn keyword pineConfig literal-signature | |
85 syn keyword pineConfig local-address | |
86 syn keyword pineConfig local-fullname | |
87 syn keyword pineConfig mail-check-interval | |
88 syn keyword pineConfig mail-directory | |
89 syn keyword pineConfig mailcap-search-path | |
90 syn keyword pineConfig mimetype-search-path | |
91 syn keyword pineConfig new-version-threshold | |
92 syn keyword pineConfig news-active-file-path | |
93 syn keyword pineConfig news-collections | |
94 syn keyword pineConfig news-spool-directory | |
95 syn keyword pineConfig newsrc-path | |
96 syn keyword pineConfig nntp-server | |
97 syn keyword pineConfig normal-background-color | |
98 syn keyword pineConfig normal-foreground-color | |
99 syn keyword pineConfig old-style-reply | |
100 syn keyword pineConfig operating-dir | |
101 syn keyword pineConfig patterns | |
102 syn keyword pineConfig patterns-filters | |
103 syn keyword pineConfig patterns-filters2 | |
104 syn keyword pineConfig patterns-indexcolors | |
105 syn keyword pineConfig patterns-other | |
106 syn keyword pineConfig patterns-roles | |
107 syn keyword pineConfig patterns-scores | |
108 syn keyword pineConfig patterns-scores2 | |
109 syn keyword pineConfig personal-name | |
110 syn keyword pineConfig personal-print-category | |
111 syn keyword pineConfig personal-print-command | |
112 syn keyword pineConfig postponed-folder | |
113 syn keyword pineConfig print-font-char-set | |
114 syn keyword pineConfig print-font-name | |
115 syn keyword pineConfig print-font-size | |
116 syn keyword pineConfig print-font-style | |
117 syn keyword pineConfig printer | |
118 syn keyword pineConfig prompt-background-color | |
119 syn keyword pineConfig prompt-foreground-color | |
120 syn keyword pineConfig pruned-folders | |
121 syn keyword pineConfig pruning-rule | |
122 syn keyword pineConfig quote1-background-color | |
123 syn keyword pineConfig quote1-foreground-color | |
124 syn keyword pineConfig quote2-background-color | |
125 syn keyword pineConfig quote2-foreground-color | |
126 syn keyword pineConfig quote3-background-color | |
127 syn keyword pineConfig quote3-foreground-color | |
128 syn keyword pineConfig read-message-folder | |
129 syn keyword pineConfig remote-abook-history | |
130 syn keyword pineConfig remote-abook-metafile | |
131 syn keyword pineConfig remote-abook-validity | |
132 syn keyword pineConfig reply-indent-string | |
133 syn keyword pineConfig reply-leadin | |
134 syn keyword pineConfig reverse-background-color | |
135 syn keyword pineConfig reverse-foreground-color | |
136 syn keyword pineConfig rsh-command | |
137 syn keyword pineConfig rsh-open-timeout | |
138 syn keyword pineConfig rsh-path | |
139 syn keyword pineConfig save-by-sender | |
140 syn keyword pineConfig saved-msg-name-rule | |
141 syn keyword pineConfig scroll-margin | |
142 syn keyword pineConfig selectable-item-background-color | |
143 syn keyword pineConfig selectable-item-foreground-color | |
144 syn keyword pineConfig sending-filters | |
145 syn keyword pineConfig sendmail-path | |
146 syn keyword pineConfig show-all-characters | |
147 syn keyword pineConfig signature-file | |
148 syn keyword pineConfig smtp-server | |
149 syn keyword pineConfig sort-key | |
150 syn keyword pineConfig speller | |
151 syn keyword pineConfig ssh-command | |
152 syn keyword pineConfig ssh-open-timeout | |
153 syn keyword pineConfig ssh-path | |
154 syn keyword pineConfig standard-printer | |
155 syn keyword pineConfig status-background-color | |
156 syn keyword pineConfig status-foreground-color | |
157 syn keyword pineConfig status-message-delay | |
158 syn keyword pineConfig suggest-address | |
159 syn keyword pineConfig suggest-fullname | |
160 syn keyword pineConfig tcp-open-timeout | |
161 syn keyword pineConfig tcp-query-timeout | |
162 syn keyword pineConfig tcp-read-warning-timeout | |
163 syn keyword pineConfig tcp-write-warning-timeout | |
164 syn keyword pineConfig threading-display-style | |
165 syn keyword pineConfig threading-expanded-character | |
166 syn keyword pineConfig threading-index-style | |
167 syn keyword pineConfig threading-indicator-character | |
168 syn keyword pineConfig threading-lastreply-character | |
169 syn keyword pineConfig title-background-color | |
170 syn keyword pineConfig title-foreground-color | |
171 syn keyword pineConfig titlebar-color-style | |
172 syn keyword pineConfig upload-command | |
173 syn keyword pineConfig upload-command-prefix | |
174 syn keyword pineConfig url-viewers | |
175 syn keyword pineConfig use-only-domain-name | |
176 syn keyword pineConfig user-domain | |
177 syn keyword pineConfig user-id | |
178 syn keyword pineConfig user-id | |
179 syn keyword pineConfig user-input-timeout | |
180 syn keyword pineConfig viewer-hdr-colors | |
181 syn keyword pineConfig viewer-hdrs | |
182 syn keyword pineConfig viewer-overlap | |
183 syn keyword pineConfig window-position | |
184 | |
185 syn keyword pineOption allow-changing-from | |
186 syn keyword pineOption allow-talk | |
187 syn keyword pineOption alternate-compose-menu | |
188 syn keyword pineOption assume-slow-link | |
189 syn keyword pineOption auto-move-read-msgs | |
190 syn keyword pineOption auto-open-next-unread | |
191 syn keyword pineOption auto-unzoom-after-apply | |
192 syn keyword pineOption auto-zoom-after-select | |
193 syn keyword pineOption cache-remote-pinerc | |
194 syn keyword pineOption check-newmail-when-quitting | |
195 syn keyword pineOption combined-addrbook-display | |
196 syn keyword pineOption combined-folder-display | |
197 syn keyword pineOption combined-subdirectory-display | |
198 syn keyword pineOption compose-cut-from-cursor | |
199 syn keyword pineOption compose-maps-delete-key-to-ctrl-d | |
200 syn keyword pineOption compose-rejects-unqualified-addrs | |
201 syn keyword pineOption compose-send-offers-first-filter | |
202 syn keyword pineOption compose-sets-newsgroup-without-confirm | |
203 syn keyword pineOption confirm-role-even-for-default | |
204 syn keyword pineOption continue-tab-without-confirm | |
205 syn keyword pineOption delete-skips-deleted | |
206 syn keyword pineOption disable-2022-jp-conversions | |
207 syn keyword pineOption disable-busy-alarm | |
208 syn keyword pineOption disable-charset-conversions | |
209 syn keyword pineOption disable-config-cmd | |
210 syn keyword pineOption disable-keyboard-lock-cmd | |
211 syn keyword pineOption disable-keymenu | |
212 syn keyword pineOption disable-password-caching | |
213 syn keyword pineOption disable-password-cmd | |
214 syn keyword pineOption disable-pipes-in-sigs | |
215 syn keyword pineOption disable-pipes-in-templates | |
216 syn keyword pineOption disable-roles-setup-cmd | |
217 syn keyword pineOption disable-roles-sig-edit | |
218 syn keyword pineOption disable-roles-template-edit | |
219 syn keyword pineOption disable-sender | |
220 syn keyword pineOption disable-shared-namespaces | |
221 syn keyword pineOption disable-signature-edit-cmd | |
222 syn keyword pineOption disable-take-last-comma-first | |
223 syn keyword pineOption enable-8bit-esmtp-negotiation | |
224 syn keyword pineOption enable-8bit-nntp-posting | |
225 syn keyword pineOption enable-aggregate-command-set | |
226 syn keyword pineOption enable-alternate-editor-cmd | |
227 syn keyword pineOption enable-alternate-editor-implicitly | |
228 syn keyword pineOption enable-arrow-navigation | |
229 syn keyword pineOption enable-arrow-navigation-relaxed | |
230 syn keyword pineOption enable-background-sending | |
231 syn keyword pineOption enable-bounce-cmd | |
232 syn keyword pineOption enable-cruise-mode | |
233 syn keyword pineOption enable-cruise-mode-delete | |
234 syn keyword pineOption enable-delivery-status-notification | |
235 syn keyword pineOption enable-dot-files | |
236 syn keyword pineOption enable-dot-folders | |
237 syn keyword pineOption enable-exit-via-lessthan-command | |
238 syn keyword pineOption enable-fast-recent-test | |
239 syn keyword pineOption enable-flag-cmd | |
240 syn keyword pineOption enable-flag-screen-implicitly | |
241 syn keyword pineOption enable-full-header-and-text | |
242 syn keyword pineOption enable-full-header-cmd | |
243 syn keyword pineOption enable-goto-in-file-browser | |
244 syn keyword pineOption enable-incoming-folders | |
245 syn keyword pineOption enable-jump-shortcut | |
246 syn keyword pineOption enable-lame-list-mode | |
247 syn keyword pineOption enable-mail-check-cue | |
248 syn keyword pineOption enable-mailcap-param-substitution | |
249 syn keyword pineOption enable-mouse-in-xterm | |
250 syn keyword pineOption enable-msg-view-addresses | |
251 syn keyword pineOption enable-msg-view-attachments | |
252 syn keyword pineOption enable-msg-view-forced-arrows | |
253 syn keyword pineOption enable-msg-view-urls | |
254 syn keyword pineOption enable-msg-view-web-hostnames | |
255 syn keyword pineOption enable-newmail-in-xterm-icon | |
256 syn keyword pineOption enable-partial-match-lists | |
257 syn keyword pineOption enable-print-via-y-command | |
258 syn keyword pineOption enable-reply-indent-string-editing | |
259 syn keyword pineOption enable-rules-under-take | |
260 syn keyword pineOption enable-search-and-replace | |
261 syn keyword pineOption enable-sigdashes | |
262 syn keyword pineOption enable-suspend | |
263 syn keyword pineOption enable-tab-completion | |
264 syn keyword pineOption enable-take-export | |
265 syn keyword pineOption enable-tray-icon | |
266 syn keyword pineOption enable-unix-pipe-cmd | |
267 syn keyword pineOption enable-verbose-smtp-posting | |
268 syn keyword pineOption expanded-view-of-addressbooks | |
269 syn keyword pineOption expanded-view-of-distribution-lists | |
270 syn keyword pineOption expanded-view-of-folders | |
271 syn keyword pineOption expose-hidden-config | |
272 syn keyword pineOption expunge-only-manually | |
273 syn keyword pineOption expunge-without-confirm | |
274 syn keyword pineOption expunge-without-confirm-everywhere | |
275 syn keyword pineOption fcc-on-bounce | |
276 syn keyword pineOption fcc-only-without-confirm | |
277 syn keyword pineOption fcc-without-attachments | |
278 syn keyword pineOption include-attachments-in-reply | |
279 syn keyword pineOption include-header-in-reply | |
280 syn keyword pineOption include-text-in-reply | |
281 syn keyword pineOption ldap-result-to-addrbook-add | |
282 syn keyword pineOption mark-fcc-seen | |
283 syn keyword pineOption mark-for-cc | |
284 syn keyword pineOption news-approximates-new-status | |
285 syn keyword pineOption news-deletes-across-groups | |
286 syn keyword pineOption news-offers-catchup-on-close | |
287 syn keyword pineOption news-post-without-validation | |
288 syn keyword pineOption news-read-in-newsrc-order | |
289 syn keyword pineOption next-thread-without-confirm | |
290 syn keyword pineOption old-growth | |
291 syn keyword pineOption pass-control-characters-as-is | |
292 syn keyword pineOption prefer-plain-text | |
293 syn keyword pineOption preserve-start-stop-characters | |
294 syn keyword pineOption print-formfeed-between-messages | |
295 syn keyword pineOption print-includes-from-line | |
296 syn keyword pineOption print-index-enabled | |
297 syn keyword pineOption print-offers-custom-cmd-prompt | |
298 syn keyword pineOption quell-attachment-extra-prompt | |
299 syn keyword pineOption quell-berkeley-format-timezone | |
300 syn keyword pineOption quell-content-id | |
301 syn keyword pineOption quell-dead-letter-on-cancel | |
302 syn keyword pineOption quell-empty-directories | |
303 syn keyword pineOption quell-extra-post-prompt | |
304 syn keyword pineOption quell-folder-internal-msg | |
305 syn keyword pineOption quell-imap-envelope-update | |
306 syn keyword pineOption quell-lock-failure-warnings | |
307 syn keyword pineOption quell-maildomain-warning | |
308 syn keyword pineOption quell-news-envelope-update | |
309 syn keyword pineOption quell-partial-fetching | |
310 syn keyword pineOption quell-ssl-largeblocks | |
311 syn keyword pineOption quell-status-message-beeping | |
312 syn keyword pineOption quell-timezone-comment-when-sending | |
313 syn keyword pineOption quell-user-lookup-in-passwd-file | |
314 syn keyword pineOption quit-without-confirm | |
315 syn keyword pineOption reply-always-uses-reply-to | |
316 syn keyword pineOption save-aggregates-copy-sequence | |
317 syn keyword pineOption save-will-advance | |
318 syn keyword pineOption save-will-not-delete | |
319 syn keyword pineOption save-will-quote-leading-froms | |
320 syn keyword pineOption scramble-message-id | |
321 syn keyword pineOption select-without-confirm | |
322 syn keyword pineOption selectable-item-nobold | |
323 syn keyword pineOption separate-folder-and-directory-entries | |
324 syn keyword pineOption show-cursor | |
325 syn keyword pineOption show-plain-text-internally | |
326 syn keyword pineOption show-selected-in-boldface | |
327 syn keyword pineOption signature-at-bottom | |
328 syn keyword pineOption single-column-folder-list | |
329 syn keyword pineOption slash-collapses-entire-thread | |
330 syn keyword pineOption spell-check-before-sending | |
331 syn keyword pineOption store-window-position-in-config | |
332 syn keyword pineOption strip-from-sigdashes-on-reply | |
333 syn keyword pineOption tab-visits-next-new-message-only | |
334 syn keyword pineOption termdef-takes-precedence | |
335 syn keyword pineOption thread-index-shows-important-color | |
336 syn keyword pineOption try-alternative-authentication-driver-first | |
337 syn keyword pineOption unselect-will-not-advance | |
338 syn keyword pineOption use-current-dir | |
339 syn keyword pineOption use-function-keys | |
340 syn keyword pineOption use-sender-not-x-sender | |
341 syn keyword pineOption use-subshell-for-suspend | |
342 syn keyword pineOption vertical-folder-list | |
343 | |
344 syn match pineComment "^#.*$" | |
345 | |
346 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
4119
diff
changeset
|
347 " Only when an item doesn't have highlighting yet |
7 | 348 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
349 hi def link pineConfig Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
350 hi def link pineComment Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
351 hi def link pineOption Macro |
7 | 352 |
353 let b:current_syntax = "pine" | |
354 | |
355 " vim: ts=8 |