annotate runtime/syntax/pinfo.vim @ 14475:dddba3937532 v8.1.0251

patch 8.1.0251: using full path is not supported for 'backupdir' commit https://github.com/vim/vim/commit/b782ba475a3f8f2b0be99dda164ba4545347f60f Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 7 21:39:28 2018 +0200 patch 8.1.0251: using full path is not supported for 'backupdir' Problem: Using a full path is supported for 'directory' but not for 'backupdir'. (Mikolaj Machowski) Solution: Support 'backupdir' as well. (Christian Brabandt, closes #179)
author Christian Brabandt <cb@256bit.org>
date Tue, 07 Aug 2018 21:45:05 +0200
parents 1218c5353e2b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
11062
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 1620
diff changeset
2 " Language: pinfo(1) configuration file
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 1620
diff changeset
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 1620
diff changeset
4 " Latest Revision: 2007-06-17
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
6 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
10 let s:cpo_save = &cpo
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
11 set cpo&vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 839
diff changeset
13 setlocal iskeyword+=-
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
14
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
17 syn keyword pinfoTodo contained FIXME TODO XXX NOTE
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
19 syn region pinfoComment start='^#' end='$' contains=pinfoTodo,@Spell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
21 syn keyword pinfoOptions MANUAL CUT-MAN-HEADERS CUT-EMPTY-MAN-LINES
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
22 \ RAW-FILENAME APROPOS
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
23 \ DONT-HANDLE-WITHOUT-TAG-TABLE HTTPVIEWER
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
24 \ FTPVIEWER MAILEDITOR PRINTUTILITY MANLINKS
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
25 \ INFOPATH MAN-OPTIONS STDERR-REDIRECTION
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
26 \ LONG-MANUAL-LINKS FILTER-0xB7
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
27 \ QUIT-CONFIRMATION QUIT-CONFIRM-DEFAULT
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
28 \ CLEAR-SCREEN-AT-EXIT CALL-READLINE-HISTORY
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
29 \ HIGHLIGHTREGEXP SAFE-USER SAFE-GROUP
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
31 syn keyword pinfoColors COL_NORMAL COL_TOPLINE COL_BOTTOMLINE
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
32 \ COL_MENU COL_MENUSELECTED COL_NOTE
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
33 \ COL_NOTESELECTED COL_URL COL_URLSELECTED
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
34 \ COL_INFOHIGHLIGHT COL_MANUALBOLD
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
35 \ COL_MANUALITALIC COL_SEARCHHIGHLIGHT
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
37 syn keyword pinfoColorDefault COLOR_DEFAULT
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
38 syn keyword pinfoColorBold BOLD
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
39 syn keyword pinfoColorNoBold NO_BOLD
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
40 syn keyword pinfoColorBlink BLINK
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
41 syn keyword pinfoColorNoBlink NO_BLINK
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
42 syn keyword pinfoColorBlack COLOR_BLACK
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
43 syn keyword pinfoColorRed COLOR_RED
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
44 syn keyword pinfoColorGreen COLOR_GREEN
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
45 syn keyword pinfoColorYellow COLOR_YELLOW
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
46 syn keyword pinfoColorBlue COLOR_BLUE
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
47 syn keyword pinfoColorMagenta COLOR_MAGENTA
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
48 syn keyword pinfoColorCyan COLOR_CYAN
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
49 syn keyword pinfoColorWhite COLOR_WHITE
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
51 syn keyword pinfoKeys KEY_TOTALSEARCH_1 KEY_TOTALSEARCH_2
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
52 \ KEY_SEARCH_1 KEY_SEARCH_2
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
53 \ KEY_SEARCH_AGAIN_1 KEY_SEARCH_AGAIN_2
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
54 \ KEY_GOTO_1 KEY_GOTO_2 KEY_PREVNODE_1
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
55 \ KEY_PREVNODE_2 KEY_NEXTNODE_1
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
56 \ KEY_NEXTNODE_2 KEY_UP_1 KEY_UP_2 KEY_END_1
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
57 \ KEY_END_2 KEY_PGDN_1 KEY_PGDN_2
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
58 \ KEY_PGDN_AUTO_1 KEY_PGDN_AUTO_2 KEY_HOME_1
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
59 \ KEY_HOME_2 KEY_PGUP_1 KEY_PGUP_2
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
60 \ KEY_PGUP_AUTO_1 KEY_PGUP_AUTO_2 KEY_DOWN_1
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
61 \ KEY_DOWN_2 KEY_TOP_1 KEY_TOP_2 KEY_BACK_1
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
62 \ KEY_BACK_2 KEY_FOLLOWLINK_1
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
63 \ KEY_FOLLOWLINK_2 KEY_REFRESH_1
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
64 \ KEY_REFRESH_2 KEY_SHELLFEED_1
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
65 \ KEY_SHELLFEED_2 KEY_QUIT_1 KEY_QUIT_2
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
66 \ KEY_GOLINE_1 KEY_GOLINE_2 KEY_PRINT_1
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
67 \ KEY_PRINT_2 KEY_DIRPAGE_1 KEY_DIRPAGE_2
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
68 \ KEY_TWODOWN_1 KEY_TWODOWN_2 KEY_TWOUP_1
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
69 \ KEY_TWOUP_2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
71 syn keyword pinfoSpecialKeys KEY_BREAK KEY_DOWN KEY_UP KEY_LEFT KEY_RIGHT
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
72 \ KEY_DOWN KEY_HOME KEY_BACKSPACE KEY_NPAGE
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
73 \ KEY_PPAGE KEY_END KEY_IC KEY_DC
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
74 syn region pinfoSpecialKeys matchgroup=pinfoSpecialKeys transparent
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
75 \ start=+KEY_\%(F\|CTRL\|ALT\)(+ end=+)+
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 375
diff changeset
76 syn region pinfoSimpleKey start=+'+ skip=+\\'+ end=+'+
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
77 \ contains=pinfoSimpleKeyEscape
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
78 syn match pinfoSimpleKeyEscape +\\[\\nt']+
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
79 syn match pinfoKeycode '\<\d\+\>'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
80
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
81 syn keyword pinfoConstants TRUE FALSE YES NO
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
83 hi def link pinfoTodo Todo
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
84 hi def link pinfoComment Comment
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
85 hi def link pinfoOptions Keyword
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
86 hi def link pinfoColors Keyword
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
87 hi def link pinfoColorDefault Normal
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
88 hi def link pinfoSpecialKeys SpecialChar
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
89 hi def link pinfoSimpleKey String
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
90 hi def link pinfoSimpleKeyEscape SpecialChar
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
91 hi def link pinfoKeycode Number
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
92 hi def link pinfoConstants Constant
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
93 hi def link pinfoKeys Keyword
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
94 hi def pinfoColorBold cterm=bold
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
95 hi def pinfoColorNoBold cterm=none
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
96 hi def pinfoColorBlink cterm=inverse
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
97 hi def pinfoColorNoBlink cterm=none
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
98 hi def pinfoColorBlack ctermfg=Black guifg=Black
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
99 hi def pinfoColorRed ctermfg=DarkRed guifg=DarkRed
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
100 hi def pinfoColorGreen ctermfg=DarkGreen guifg=DarkGreen
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
101 hi def pinfoColorYellow ctermfg=DarkYellow guifg=DarkYellow
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
102 hi def pinfoColorBlue ctermfg=DarkBlue guifg=DarkBlue
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
103 hi def pinfoColorMagenta ctermfg=DarkMagenta guifg=DarkMagenta
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
104 hi def pinfoColorCyan ctermfg=DarkCyan guifg=DarkCyan
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
105 hi def pinfoColorWhite ctermfg=LightGray guifg=LightGray
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 let b:current_syntax = "pinfo"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
109 let &cpo = s:cpo_save
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
110 unlet s:cpo_save