xref: /vim-8.2.3635/runtime/syntax/elinks.vim (revision 01a6c216)
1" Vim syntax file
2" Language:             elinks(1) configuration file
3" Previous Maintainer:  Nikolai Weibull <[email protected]>
4" Latest Revision:      2007-06-17
5
6if exists("b:current_syntax")
7  finish
8endif
9
10let s:cpo_save = &cpo
11set cpo&vim
12
13setlocal iskeyword+=-
14
15syn keyword elinksTodo      contained TODO FIXME XXX NOTE
16
17syn region  elinksComment   display oneline start='#' end='$'
18                            \ contains=elinksTodo,@Spell
19
20syn match   elinksNumber    '\<\d\+\>'
21
22syn region  elinksString    start=+"+ skip=+\\\\\|\\"+ end=+"+
23                            \ contains=@elinksColor
24
25syn keyword elinksKeyword   set bind
26
27syn keyword elinksPrefix    bookmarks
28syn keyword elinksOptions   file_format
29
30syn keyword elinksPrefix    config
31syn keyword elinksOptions   comments indentation saving_style i18n
32                            \ saving_style_w show_template
33
34syn keyword elinksPrefix    connection ssl client_cert
35syn keyword elinksOptions   enable file cert_verify async_dns max_connections
36                            \ max_connections_to_host receive_timeout retries
37                            \ unrestartable_receive_timeout
38
39syn keyword elinksPrefix    cookies
40syn keyword elinksOptions   accept_policy max_age paranoid_security save resave
41
42syn keyword elinksPrefix    document browse accesskey forms images links
43syn keyword elinksPrefix    active_link colors search cache codepage colors
44syn keyword elinksPrefix    format memory download dump history global html
45syn keyword elinksPrefix    plain
46syn 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
67syn keyword elinksPrefix    mime extension handler mailcap mimetypes type
68syn keyword elinksOptions   ask block program enable path ask description
69                            \ prioritize enable path default_type
70
71syn keyword elinksPrefix    protocol file cgi ftp proxy http bugs proxy
72syn keyword elinksPrefix    referer https proxy rewrite dumb smart
73syn 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
81syn keyword elinksPrefix    terminal
82syn keyword elinksOptions   type m11_hack utf_8_io restrict_852 block_cursor
83                            \ colors transparency underline charset
84
85syn 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
92syn keyword elinksOptions   text background
93
94syn keyword elinksPrefix    ui dialogs leds sessions tabs timer
95syn 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
102syn keyword elinksOptions   secure_file_saving
103
104syn 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
113syn keyword elinksColorBlack        contained black
114syn keyword elinksColorDarkRed      contained darkred sandybrown maroon crimson
115                                    \ firebrick
116syn keyword elinksColorDarkGreen    contained darkgreen darkolivegreen
117                                    \ darkseagreen forestgreen
118                                    \ mediumspringgreen seagreen
119syn keyword elinksColorDarkYellow   contained brown blanchedalmond chocolate
120                                    \ darkorange darkgoldenrod orange rosybrown
121                                    \ saddlebrown peru olive olivedrab sienna
122syn keyword elinksColorDarkBlue     contained darkblue cadetblue cornflowerblue
123                                    \ darkslateblue deepskyblue midnightblue
124                                    \ royalblue steelblue navy
125syn keyword elinksColorDarkMagenta  contained darkmagenta mediumorchid
126                                    \ mediumpurple mediumslateblue slateblue
127                                    \ deeppink hotpink darkorchid orchid purple
128                                    \ indigo
129syn keyword elinksColorDarkCyan     contained darkcyan mediumaquamarine
130                                    \ mediumturquoise darkturquoise teal
131syn keyword elinksColorGray         contained silver dimgray lightslategray
132                                    \ slategray lightgrey burlywood plum tan
133                                    \ thistle
134syn keyword elinksColorDarkGray     contained gray darkgray darkslategray
135                                    \ darksalmon
136syn keyword elinksColorRed          contained red indianred orangered tomato
137                                    \ lightsalmon salmon coral lightcoral
138syn keyword elinksColorGreen        contained green greenyellow lawngreen
139                                    \ lightgreen lightseagreen limegreen
140                                    \ mediumseagreen springgreen yellowgreen
141                                    \ palegreen lime chartreuse
142syn keyword elinksColorYellow       contained yellow beige darkkhaki
143                                    \ lightgoldenrodyellow palegoldenrod gold
144                                    \ goldenrod khaki lightyellow
145syn keyword elinksColorBlue         contained blue aliceblue aqua aquamarine
146                                    \ azure dodgerblue lightblue lightskyblue
147                                    \ lightsteelblue mediumblue
148syn keyword elinksColorMagenta      contained magenta darkviolet blueviolet
149                                    \ lightpink mediumvioletred palevioletred
150                                    \ violet pink fuchsia
151syn keyword elinksColorCyan         contained cyan lightcyan powderblue skyblue
152                                    \ turquoise paleturquoise
153syn 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
161hi def link elinksTodo              Todo
162hi def link elinksComment           Comment
163hi def link elinksNumber            Number
164hi def link elinksString            String
165hi def link elinksKeyword           Keyword
166hi def link elinksPrefix            Identifier
167hi def link elinksOptions           Identifier
168hi def      elinksColorBlack        ctermfg=Black       guifg=Black
169hi def      elinksColorDarkRed      ctermfg=DarkRed     guifg=DarkRed
170hi def      elinksColorDarkGreen    ctermfg=DarkGreen   guifg=DarkGreen
171hi def      elinksColorDarkYellow   ctermfg=DarkYellow  guifg=DarkYellow
172hi def      elinksColorDarkBlue     ctermfg=DarkBlue    guifg=DarkBlue
173hi def      elinksColorDarkMagenta  ctermfg=DarkMagenta guifg=DarkMagenta
174hi def      elinksColorDarkCyan     ctermfg=DarkCyan    guifg=DarkCyan
175hi def      elinksColorGray         ctermfg=Gray        guifg=Gray
176hi def      elinksColorDarkGray     ctermfg=DarkGray    guifg=DarkGray
177hi def      elinksColorRed          ctermfg=Red         guifg=Red
178hi def      elinksColorGreen        ctermfg=Green       guifg=Green
179hi def      elinksColorYellow       ctermfg=Yellow      guifg=Yellow
180hi def      elinksColorBlue         ctermfg=Blue        guifg=Blue
181hi def      elinksColorMagenta      ctermfg=Magenta     guifg=Magenta
182hi def      elinksColorCyan         ctermfg=Cyan        guifg=Cyan
183hi def      elinksColorWhite        ctermfg=White       guifg=White
184
185let b:current_syntax = "elinks"
186
187let &cpo = s:cpo_save
188unlet s:cpo_save
189