annotate runtime/syntax/lynx.vim @ 4780:2b11ac90d9e9

Updated runtime files.
author Bram Moolenaar <bram@vim.org>
date Thu, 06 Jun 2013 21:36:40 +0200
parents e63691e7c504
children 42bf9264e64e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
1 " Vim syntax file
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
2 " Language: Lynx configuration file (lynx.cfg)
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
3 " Maintainer: Doug Kearns <dougkearns@gmail.com>
36
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
4 " URL: http://gus.gscit.monash.edu.au/~djkea2/vim/syntax/lynx.vim
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
5 " Last Change: 2007 Mar 20
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
7 " Lynx 2.8.5
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
9 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
13 let s:cpo_save = &cpo
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
14 set cpo&vim
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
15
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn match lynxLeadingWS "^\s*" transparent nextgroup=lynxOption
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn match lynxComment "\(^\|\s\+\)#.*$" contains=lynxTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
20 syn keyword lynxTodo TODO NOTE FIXME XXX contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match lynxDelimiter ":" contained nextgroup=lynxBoolean,lynxNumber
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn keyword lynxBoolean TRUE FALSE contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
28 syn match lynxNumber "-\=\<\d\+\>" contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn case ignore
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
31 syn keyword lynxOption ACCEPT_ALL_COOKIES ALERTSECS ALWAYS_RESUBMIT_POSTS ALWAYS_TRUSTED_EXEC ASSUME_CHARSET
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
32 \ ASSUMED_COLOR ASSUMED_DOC_CHARSET_CHOICE ASSUME_LOCAL_CHARSET ASSUME_UNREC_CHARSET AUTO_UNCACHE_DIRLISTS
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
33 \ BIBP_BIBHOST BIBP_GLOBAL_SERVER BLOCK_MULTI_BOOKMARKS BOLD_H1 BOLD_HEADERS
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
34 \ BOLD_NAME_ANCHORS CASE_SENSITIVE_ALWAYS_ON CHARACTER_SET CHARSETS_DIRECTORY CHARSET_SWITCH_RULES
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
35 \ CHECKMAIL COLLAPSE_BR_TAGS COLOR CONNECT_TIMEOUT COOKIE_ACCEPT_DOMAINS
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
36 \ COOKIE_FILE COOKIE_LOOSE_INVALID_DOMAINS COOKIE_QUERY_INVALID_DOMAINS COOKIE_REJECT_DOMAINS COOKIE_SAVE_FILE
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
37 \ COOKIE_STRICT_INVALID_DOMAINS CSO_PROXY CSWING_PATH DEBUGSECS DEFAULT_BOOKMARK_FILE
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
38 \ DEFAULT_CACHE_SIZE DEFAULT_EDITOR DEFAULT_INDEX_FILE DEFAULT_KEYPAD_MODE DEFAULT_KEYPAD_MODE_IS_NUMBERS_AS_ARROWS
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
39 \ DEFAULT_USER_MODE DEFAULT_VIRTUAL_MEMORY_SIZE DIRED_MENU DISPLAY_CHARSET_CHOICE DOWNLOADER
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
40 \ EMACS_KEYS_ALWAYS_ON ENABLE_LYNXRC ENABLE_SCROLLBACK EXTERNAL FINGER_PROXY
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
41 \ FOCUS_WINDOW FORCE_8BIT_TOUPPER FORCE_COOKIE_PROMPT FORCE_EMPTY_HREFLESS_A FORCE_SSL_COOKIES_SECURE
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
42 \ FORCE_SSL_PROMPT FORMS_OPTIONS FTP_PASSIVE FTP_PROXY GLOBAL_EXTENSION_MAP
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
43 \ GLOBAL_MAILCAP GOPHER_PROXY GOTOBUFFER HELPFILE HIDDEN_LINK_MARKER
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
44 \ HISTORICAL_COMMENTS HTMLSRC_ATTRNAME_XFORM HTMLSRC_TAGNAME_XFORM HTTP_PROXY HTTPS_PROXY
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
45 \ INCLUDE INFOSECS JUMPBUFFER JUMPFILE JUMP_PROMPT
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
46 \ JUSTIFY JUSTIFY_MAX_VOID_PERCENT KEYBOARD_LAYOUT KEYMAP LEFTARROW_IN_TEXTFIELD_PROMPT
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
47 \ LIST_FORMAT LIST_NEWS_DATES LIST_NEWS_NUMBERS LOCAL_DOMAIN LOCALE_CHARSET
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
48 \ LOCAL_EXECUTION_LINKS_ALWAYS_ON LOCAL_EXECUTION_LINKS_ON_BUT_NOT_REMOTE LOCALHOST_ALIAS LYNXCGI_DOCUMENT_ROOT LYNXCGI_ENVIRONMENT
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
49 \ LYNX_HOST_NAME LYNX_SIG_FILE MAIL_ADRS MAIL_SYSTEM_ERROR_LOGGING MAKE_LINKS_FOR_ALL_IMAGES
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
50 \ MAKE_PSEUDO_ALTS_FOR_INLINES MESSAGESECS MINIMAL_COMMENTS MULTI_BOOKMARK_SUPPORT NCR_IN_BOOKMARKS
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
51 \ NEWS_CHUNK_SIZE NEWS_MAX_CHUNK NEWS_POSTING NEWSPOST_PROXY NEWS_PROXY
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
52 \ NEWSREPLY_PROXY NNTP_PROXY NNTPSERVER NO_DOT_FILES NO_FILE_REFERER
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
53 \ NO_FORCED_CORE_DUMP NO_FROM_HEADER NO_ISMAP_IF_USEMAP NONRESTARTING_SIGWINCH NO_PROXY
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
54 \ NO_REFERER_HEADER NO_TABLE_CENTER NUMBER_FIELDS_ON_LEFT NUMBER_LINKS_ON_LEFT OUTGOING_MAIL_CHARSET
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
55 \ PARTIAL PARTIAL_THRES PERSISTENT_COOKIES PERSONAL_EXTENSION_MAP PERSONAL_MAILCAP
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
56 \ PREFERRED_CHARSET PREFERRED_LANGUAGE PREPEND_BASE_TO_SOURCE PREPEND_CHARSET_TO_SOURCE PRETTYSRC
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
57 \ PRETTYSRC_SPEC PRETTYSRC_VIEW_NO_ANCHOR_NUMBERING PRINTER QUIT_DEFAULT_YES REFERER_WITH_QUERY
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
58 \ REPLAYSECS REUSE_TEMPFILES RULE RULESFILE SAVE_SPACE
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
59 \ SCAN_FOR_BURIED_NEWS_REFS SCREEN_SIZE SCROLLBAR SCROLLBAR_ARROW SEEK_FRAG_AREA_IN_CUR
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
60 \ SEEK_FRAG_MAP_IN_CUR SET_COOKIES SHOW_CURSOR SHOW_KB_NAME SHOW_KB_RATE
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
61 \ SNEWSPOST_PROXY SNEWS_PROXY SNEWSREPLY_PROXY SOFT_DQUOTES SOURCE_CACHE
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
62 \ SOURCE_CACHE_FOR_ABORTED STARTFILE STRIP_DOTDOT_URLS SUBSTITUTE_UNDERSCORES SUFFIX
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
63 \ SUFFIX_ORDER SYSTEM_EDITOR SYSTEM_MAIL SYSTEM_MAIL_FLAGS TAGSOUP
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
64 \ TEXTFIELDS_NEED_ACTIVATION TIMEOUT TRIM_INPUT_FIELDS TRUSTED_EXEC TRUSTED_LYNXCGI
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
65 \ UNDERLINE_LINKS UPLOADER URL_DOMAIN_PREFIXES URL_DOMAIN_SUFFIXES USE_FIXED_RECORDS
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
66 \ USE_MOUSE USE_SELECT_POPUPS VERBOSE_IMAGES VIEWER VI_KEYS_ALWAYS_ON
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
67 \ WAIS_PROXY XLOADIMAGE_COMMAND contained nextgroup=lynxDelimiter
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
68 syn keyword lynxOption BZIP2_PATH CHMOD_PATH COMPRESS_PATH COPY_PATH GZIP_PATH
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
69 \ INSTALL_PATH MKDIR_PATH MV_PATH RLOGIN_PATH RMDIR_PATH
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
70 \ RM_PATH TAR_PATH TELNET_PATH TN3270_PATH TOUCH_PATH
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
71 \ UNCOMPRESS_PATH UNZIP_PATH UUDECODE_PATH ZCAT_PATH ZIP_PATH contained nextgroup=lynxDelimiter
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 " NOTE: set this if you want the cfg2html.pl formatting directives to be highlighted
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 if exists("lynx_formatting_directives")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 syn match lynxFormatDir "^\.\(h1\|h2\)\s.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn match lynxFormatDir "^\.\(ex\|nf\)\(\s\+\d\+\)\=$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn match lynxFormatDir "^\.fi$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
81 hi def link lynxBoolean Boolean
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
82 hi def link lynxComment Comment
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
83 hi def link lynxDelimiter Special
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
84 hi def link lynxFormatDir Special
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
85 hi def link lynxNumber Number
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
86 hi def link lynxOption Identifier
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
87 hi def link lynxTodo Todo
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 let b:current_syntax = "lynx"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
91 let &cpo = s:cpo_save
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
92 unlet s:cpo_save
e63691e7c504 updated for version 7.1a
vimboss
parents: 36
diff changeset
93
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 " vim: ts=8