Mercurial > hg > RemoteEditor > vim7
comparison runtime/syntax/elinks.vim @ 0:76efa0be13f1
Initial revision
author | atsuki |
---|---|
date | Sat, 10 Nov 2007 15:07:22 +0900 |
parents | |
children | e170173ecb68 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:76efa0be13f1 |
---|---|
1 " Vim syntax file | |
2 " Language: elinks(1) configuration file | |
3 " Maintainer: Nikolai Weibull <now@bitwi.se> | |
4 " Latest Revision: 2006-04-19 | |
5 | |
6 if exists("b:current_syntax") | |
7 finish | |
8 endif | |
9 | |
10 let s:cpo_save = &cpo | |
11 set cpo&vim | |
12 | |
13 setlocal iskeyword=@,48-57,_,- | |
14 | |
15 syn keyword elinksTodo contained TODO FIXME XXX NOTE | |
16 | |
17 syn region elinksComment display oneline start='#' end='$' | |
18 \ contains=elinksTodo,@Spell | |
19 | |
20 syn match elinksNumber '\<\d\+\>' | |
21 | |
22 syn region elinksString start=+"+ skip=+\\\\\|\\"+ end=+"+ | |
23 \ contains=@elinksColor | |
24 | |
25 syn keyword elinksKeyword set bind | |
26 | |
27 syn keyword elinksPrefix bookmarks | |
28 syn keyword elinksOptions file_format | |
29 | |
30 syn keyword elinksPrefix config | |
31 syn keyword elinksOptions comments indentation saving_style i18n | |
32 \ saving_style_w show_template | |
33 | |
34 syn keyword elinksPrefix connection ssl client_cert | |
35 syn keyword elinksOptions enable file cert_verify async_dns max_connections | |
36 \ max_connections_to_host receive_timeout retries | |
37 \ unrestartable_receive_timeout | |
38 | |
39 syn keyword elinksPrefix cookies | |
40 syn keyword elinksOptions accept_policy max_age paranoid_security save resave | |
41 | |
42 syn keyword elinksPrefix document browse accesskey forms images links | |
43 syn keyword elinksPrefix active_link colors search cache codepage colors | |
44 syn keyword elinksPrefix format memory download dump history global html | |
45 syn keyword elinksPrefix plain | |
46 syn keyword elinksOptions auto_follow priority auto_submit confirm_submit | |
47 \ input_size show_formhist file_tags | |
48 \ image_link_tagging image_link_prefix | |
49 \ image_link_suffix show_as_links | |
50 \ show_any_as_links background text enable_color | |
51 \ bold invert underline color_dirs numbering | |
52 \ use_tabindex number_keys_select_link | |
53 \ wraparound case regex show_hit_top_bottom | |
54 \ wraparound show_not_found margin_width refresh | |
55 \ minimum_refresh_time scroll_margin scroll_step | |
56 \ table_move_order size size cache_redirects | |
57 \ ignore_cache_control assume force_assumed text | |
58 \ background link vlink dirs allow_dark_on_black | |
59 \ ensure_contrast use_document_colors directory | |
60 \ set_original_time overwrite notify_bell | |
61 \ codepage width enable max_items display_type | |
62 \ write_interval keep_unhistory display_frames | |
63 \ display_tables expand_table_columns display_subs | |
64 \ display_sups link_display underline_links | |
65 \ wrap_nbsp display_links compress_empty_lines | |
66 | |
67 syn keyword elinksPrefix mime extension handler mailcap mimetypes type | |
68 syn keyword elinksOptions ask block program enable path ask description | |
69 \ prioritize enable path default_type | |
70 | |
71 syn keyword elinksPrefix protocol file cgi ftp proxy http bugs proxy | |
72 syn keyword elinksPrefix referer https proxy rewrite dumb smart | |
73 syn keyword elinksOptions path policy allow_special_files show_hidden_files | |
74 \ try_encoding_extensions host anon_passwd | |
75 \ use_pasv use_epsv accept_charset allow_blacklist | |
76 \ broken_302_redirect post_no_keepalive http10 | |
77 \ host user passwd policy fake accept_language | |
78 \ accept_ui_language trace user_agent host | |
79 \ enable-dumb enable-smart | |
80 | |
81 syn keyword elinksPrefix terminal | |
82 syn keyword elinksOptions type m11_hack utf_8_io restrict_852 block_cursor | |
83 \ colors transparency underline charset | |
84 | |
85 syn keyword elinksPrefix ui colors color mainmenu normal selected hotkey | |
86 \ menu marked hotkey frame dialog generic | |
87 \ frame scrollbar scrollbar-selected title text | |
88 \ checkbox checkbox-label button button-selected | |
89 \ field field-text meter shadow title title-bar | |
90 \ title-text status status-bar status-text tabs | |
91 \ unvisited normal loading separator searched mono | |
92 syn keyword elinksOptions text background | |
93 | |
94 syn keyword elinksPrefix ui dialogs leds sessions tabs timer | |
95 syn keyword elinksOptions listbox_min_height shadows underline_hotkeys enable | |
96 \ auto_save auto_restore auto_save_foldername | |
97 \ homepage show_bar wraparound confirm_close | |
98 \ enable duration action language show_status_bar | |
99 \ show_title_bar startup_goto_dialog | |
100 \ success_msgbox window_title | |
101 | |
102 syn keyword elinksOptions secure_file_saving | |
103 | |
104 syn cluster elinksColor contains=elinksColorBlack,elinksColorDarkRed, | |
105 \ elinksColorDarkGreen,elinksColorDarkYellow, | |
106 \ elinksColorDarkBlue,elinksColorDarkMagenta, | |
107 \ elinksColorDarkCyan,elinksColorGray, | |
108 \ elinksColorDarkGray,elinksColorRed, | |
109 \ elinksColorGreen,elinksColorYellow, | |
110 \ elinksColorBlue,elinksColorMagenta, | |
111 \ elinksColorCyan,elinksColorWhite | |
112 | |
113 syn keyword elinksColorBlack contained black | |
114 syn keyword elinksColorDarkRed contained darkred sandybrown maroon crimson | |
115 \ firebrick | |
116 syn keyword elinksColorDarkGreen contained darkgreen darkolivegreen | |
117 \ darkseagreen forestgreen | |
118 \ mediumspringgreen seagreen | |
119 syn keyword elinksColorDarkYellow contained brown blanchedalmond chocolate | |
120 \ darkorange darkgoldenrod orange rosybrown | |
121 \ saddlebrown peru olive olivedrab sienna | |
122 syn keyword elinksColorDarkBlue contained darkblue cadetblue cornflowerblue | |
123 \ darkslateblue deepskyblue midnightblue | |
124 \ royalblue steelblue navy | |
125 syn keyword elinksColorDarkMagenta contained darkmagenta mediumorchid | |
126 \ mediumpurple mediumslateblue slateblue | |
127 \ deeppink hotpink darkorchid orchid purple | |
128 \ indigo | |
129 syn keyword elinksColorDarkCyan contained darkcyan mediumaquamarine | |
130 \ mediumturquoise darkturquoise teal | |
131 syn keyword elinksColorGray contained silver dimgray lightslategray | |
132 \ slategray lightgrey burlywood plum tan | |
133 \ thistle | |
134 syn keyword elinksColorDarkGray contained gray darkgray darkslategray | |
135 \ darksalmon | |
136 syn keyword elinksColorRed contained red indianred orangered tomato | |
137 \ lightsalmon salmon coral lightcoral | |
138 syn keyword elinksColorGreen contained green greenyellow lawngreen | |
139 \ lightgreen lightseagreen limegreen | |
140 \ mediumseagreen springgreen yellowgreen | |
141 \ palegreen lime chartreuse | |
142 syn keyword elinksColorYellow contained yellow beige darkkhaki | |
143 \ lightgoldenrodyellow palegoldenrod gold | |
144 \ goldenrod khaki lightyellow | |
145 syn keyword elinksColorBlue contained blue aliceblue aqua aquamarine | |
146 \ azure dodgerblue lightblue lightskyblue | |
147 \ lightsteelblue mediumblue | |
148 syn keyword elinksColorMagenta contained magenta darkviolet blueviolet | |
149 \ lightpink mediumvioletred palevioletred | |
150 \ violet pink fuchsia | |
151 syn keyword elinksColorCyan contained cyan lightcyan powderblue skyblue | |
152 \ turquoise paleturquoise | |
153 syn keyword elinksColorWhite contained white antiquewhite floralwhite | |
154 \ ghostwhite navajowhite whitesmoke linen | |
155 \ lemonchiffon cornsilk lavender | |
156 \ lavenderblush seashell mistyrose ivory | |
157 \ papayawhip bisque gainsboro honeydew | |
158 \ mintcream moccasin oldlace peachpuff snow | |
159 \ wheat | |
160 | |
161 hi def link elinksTodo Todo | |
162 hi def link elinksComment Comment | |
163 hi def link elinksNumber Number | |
164 hi def link elinksString String | |
165 hi def link elinksKeyword Keyword | |
166 hi def link elinksPrefix Identifier | |
167 hi def link elinksOptions Identifier | |
168 hi def elinksColorBlack ctermfg=Black guifg=Black | |
169 hi def elinksColorDarkRed ctermfg=DarkRed guifg=DarkRed | |
170 hi def elinksColorDarkGreen ctermfg=DarkGreen guifg=DarkGreen | |
171 hi def elinksColorDarkYellow ctermfg=DarkYellow guifg=DarkYellow | |
172 hi def elinksColorDarkBlue ctermfg=DarkBlue guifg=DarkBlue | |
173 hi def elinksColorDarkMagenta ctermfg=DarkMagenta guifg=DarkMagenta | |
174 hi def elinksColorDarkCyan ctermfg=DarkCyan guifg=DarkCyan | |
175 hi def elinksColorGray ctermfg=Gray guifg=Gray | |
176 hi def elinksColorDarkGray ctermfg=DarkGray guifg=DarkGray | |
177 hi def elinksColorRed ctermfg=Red guifg=Red | |
178 hi def elinksColorGreen ctermfg=Green guifg=Green | |
179 hi def elinksColorYellow ctermfg=Yellow guifg=Yellow | |
180 hi def elinksColorBlue ctermfg=Blue guifg=Blue | |
181 hi def elinksColorMagenta ctermfg=Magenta guifg=Magenta | |
182 hi def elinksColorCyan ctermfg=Cyan guifg=Cyan | |
183 hi def elinksColorWhite ctermfg=White guifg=White | |
184 | |
185 let b:current_syntax = "elinks" | |
186 | |
187 let &cpo = s:cpo_save | |
188 unlet s:cpo_save |