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