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