annotate runtime/syntax/pinfo.vim @ 100:1f3902f3eb5c v7.0038

updated for version 7.0038
author vimboss
date Fri, 14 Jan 2005 21:53:12 +0000
parents 3fc0f57ecb91
children f14cbd913415
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: pinfo(1) configuration file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Nikolai Weibull <source@pcppopper.org>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " URL: http://www.pcppopper.org/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Latest Revision: 2004-05-22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " arch-tag: da2cfa1c-0350-45dc-b2d2-2bf3915bd0a2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " Set iskeyword since we need `-' (and potentially others) in keywords.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " For version 5.x: Set it globally
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " For version 6.x: Set it locally
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 if version >= 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 command -nargs=1 SetIsk setlocal iskeyword=<args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 command -nargs=1 SetIsk set iskeyword=<args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 SetIsk @,48-57,_,-
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 delcommand SetIsk
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " Ignore Case
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 " Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword pinfoTodo contained FIXME TODO XXX NOTE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 " Comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn region pinfoComment start='^#' end='$' contains=pinfoTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 " Keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword pinfoOptions MANUAL CUT-MAN-HEADERS CUT-EMPTY-MAN-LINES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn keyword pinfoOptions RAW-FILENAME APROPOS DONT-HANDLE-WITHOUT-TAG-TABLE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword pinfoOptions HTTPVIEWER FTPVIEWER MAILEDITOR PRINTUTILITY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword pinfoOptions MANLINKS INFOPATH MAN-OPTIONS STDERR-REDIRECTION
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword pinfoOptions LONG-MANUAL-LINKS FILTER-0xB7 QUIT-CONFIRMATION
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword pinfoOptions QUIT-CONFIRM-DEFAULT CLEAR-SCREEN-AT-EXIT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword pinfoOptions CALL-READLINE-HISTORY HIGHLIGHTREGEXP SAFE-USER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword pinfoOptions SAFE-GROUP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 " Colors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword pinfoColors COL_NORMAL COL_TOPLINE COL_BOTTOMLINE COL_MENU
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword pinfoColors COL_MENUSELECTED COL_NOTE COL_NOTESELECTED COL_URL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword pinfoColors COL_URLSELECTED COL_INFOHIGHLIGHT COL_MANUALBOLD
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword pinfoColors COL_MANUALITALIC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword pinfoColorDefault COLOR_DEFAULT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword pinfoColorBold BOLD
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword pinfoColorNoBold NO_BOLD
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn keyword pinfoColorBlink BLINK
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn keyword pinfoColorNoBlink NO_BLINK
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword pinfoColorBlack COLOR_BLACK
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword pinfoColorRed COLOR_RED
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword pinfoColorGreen COLOR_GREEN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn keyword pinfoColorYellow COLOR_YELLOW
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword pinfoColorBlue COLOR_BLUE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword pinfoColorMagenta COLOR_MAGENTA
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn keyword pinfoColorCyan COLOR_CYAN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn keyword pinfoColorWhite COLOR_WHITE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 " Keybindings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn keyword pinfoKeys KEY_TOTALSEARCH_1 KEY_TOTALSEARCH_2 KEY_SEARCH_1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn keyword pinfoKeys KEY_SEARCH_2 KEY_SEARCH_AGAIN_1 KEY_SEARCH_AGAIN_2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn keyword pinfoKeys KEY_GOTO_1 KEY_GOTO_2 KEY_PREVNODE_1 KEY_PREVNODE_2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn keyword pinfoKeys KEY_NEXTNODE_1 KEY_NEXTNODE_2 KEY_UP_1 KEY_UP_2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn keyword pinfoKeys KEY_END_1 KEY_END_2 KEY_PGDN_1 KEY_PGDN_2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn keyword pinfoKeys KEY_PGDN_AUTO_1 KEY_PGDN_AUTO_2 KEY_HOME_1 KEY_HOME_2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn keyword pinfoKeys KEY_PGUP_1 KEY_PGUP_2 KEY_PGUP_AUTO_1 KEY_PGUP_AUTO_2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn keyword pinfoKeys KEY_DOWN_1 KEY_DOWN_2 KEY_TOP_1 KEY_TOP_2 KEY_BACK_1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn keyword pinfoKeys KEY_BACK_2 KEY_FOLLOWLINK_1 KEY_FOLLOWLINK_2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn keyword pinfoKeys KEY_REFRESH_1 KEY_REFRESH_2 KEY_SHELLFEED_1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn keyword pinfoKeys KEY_SHELLFEED_2 KEY_QUIT_1 KEY_QUIT_2 KEY_GOLINE_1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn keyword pinfoKeys KEY_GOLINE_2 KEY_PRINT_1 KEY_PRINT_2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 syn keyword pinfoKeys KEY_DIRPAGE_1 KEY_DIRPAGE_2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 " Special Keys
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn keyword pinfoSpecialKeys KEY_BREAK KEY_DOWN KEY_UP KEY_LEFT KEY_RIGHT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn keyword pinfoSpecialKeys KEY_DOWN KEY_HOME KEY_BACKSPACE KEY_NPAGE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 syn keyword pinfoSpecialKeys KEY_PPAGE KEY_END KEY_IC KEY_DC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 syn region pinfoSpecialKeys matchgroup=pinfoSpecialKeys transparent start=+KEY_\%(F\|CTRL\|ALT\)(+ end=+)+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn region pinfoSimpleKey matchgroup=pinfoSimpleKey start=+'+ skip=+\\'+ end=+'+ contains=pinfoSimpleKeyEscape
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn match pinfoSimpleKeyEscape +\\[\\nt']+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 syn match pinfoKeycode '\<\d\+\>'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 " Constants
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 syn keyword pinfoConstants TRUE FALSE YES NO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 if version >= 508 || !exists("did_pinfo_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 let did_pinfo_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 command -nargs=+ HiDef hi <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 command -nargs=+ HiDef hi def <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 HiLink pinfoTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 HiLink pinfoComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 HiLink pinfoOptions Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 HiLink pinfoColors Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 HiLink pinfoColorDefault Normal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 HiDef pinfoColorBold cterm=bold
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 HiDef pinfoColorNoBold cterm=none
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 " we can't access the blink attribute from Vim atm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 HiDef pinfoColorBlink cterm=inverse
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 HiDef pinfoColorNoBlink cterm=none
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 HiDef pinfoColorBlack ctermfg=Black guifg=Black
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 HiDef pinfoColorRed ctermfg=DarkRed guifg=DarkRed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 HiDef pinfoColorGreen ctermfg=DarkGreen guifg=DarkGreen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 HiDef pinfoColorYellow ctermfg=DarkYellow guifg=DarkYellow
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 HiDef pinfoColorBlue ctermfg=DarkBlue guifg=DarkBlue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 HiDef pinfoColorMagenta ctermfg=DarkMagenta guifg=DarkMagenta
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 HiDef pinfoColorCyan ctermfg=DarkCyan guifg=DarkCyan
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 HiDef pinfoColorWhite ctermfg=LightGray guifg=LightGray
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 HiLink pinfoKeys Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 HiLink pinfoSpecialKeys SpecialChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 HiLink pinfoSimpleKey String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 HiLink pinfoSimpleKeyEscape SpecialChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 HiLink pinfoKeycode Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 HiLink pinfoConstants Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 delcommand HiDef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 let b:current_syntax = "pinfo"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 " vim: set sts=2 sw=2: