Mercurial > vim
annotate runtime/syntax/lynx.vim @ 34105:c4ad4778946c v9.1.0017
patch 9.1.0017: [security]: use-after-free in eval1_emsg()
Commit: https://github.com/vim/vim/commit/28d71b566a29ceea3a2d05bcee9264ed5d630d42
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Fri Jan 12 17:21:55 2024 +0100
patch 9.1.0017: [security]: use-after-free in eval1_emsg()
Problem: use-after-free in eval1_emsg() when an empty
line follows a lambda (by @yu3s)
Solution: only set evalarg->eval_using_cmdline = FALSE when
the *arg pointer is not null
fixes: #13833
closes: #13841
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 12 Jan 2024 17:30:06 +0100 |
parents | da55eac05ef7 |
children |
rev | line source |
---|---|
1121 | 1 " Vim syntax file |
33756
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
2 " Language: Lynx Web Browser Configuration (lynx.cfg) |
1121 | 3 " Maintainer: Doug Kearns <dougkearns@gmail.com> |
33756
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
4 " Last Change: 2023 Nov 09 |
7 | 5 |
33756
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
6 " Lynx 2.8.9 |
7 | 7 |
1121 | 8 if exists("b:current_syntax") |
7 | 9 finish |
10 endif | |
11 | |
1121 | 12 let s:cpo_save = &cpo |
13 set cpo&vim | |
14 | |
33756
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
15 syn match lynxStart "^" skipwhite nextgroup=lynxOption |
7 | 16 |
33756
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
17 syn match lynxComment "\%(^\|\s\+\)#.*" contains=lynxTodo |
7 | 18 |
5277 | 19 syn keyword lynxTodo TODO NOTE FIXME XXX contained |
7 | 20 |
33756
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
21 syn match lynxDelimiter ":" skipwhite nextgroup=lynxBoolean,lynxHttpProtocol,lynxNumber,lynxNone,lynxRCOption |
7 | 22 |
23 syn case ignore | |
5277 | 24 syn keyword lynxBoolean TRUE FALSE ON OFF contained |
33756
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
25 syn keyword lynxNone NONE contained |
7 | 26 syn case match |
27 | |
33756
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
28 syn match lynxNumber "-\=\<\d\+\>" contained |
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
29 syn match lynxHttpProtocol "\<1\.[01]\>" contained |
5277 | 30 |
31 "{{{ Options | |
32 syn case ignore | |
33756
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
33 syn keyword lynxOption ACCEPT_ALL_COOKIES ALERTSECS |
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
34 \ ALWAYS_RESUBMIT_POSTS ALWAYS_TRUSTED_EXEC ANONFTP_PASSWORD |
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
35 \ ASSUMED_COLOR ASSUMED_DOC_CHARSET_CHOICE ASSUME_CHARSET |
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
36 \ ASSUME_LOCAL_CHARSET ASSUME_UNREC_CHARSET AUTO_SESSION |
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
37 \ AUTO_UNCACHE_DIRLISTS BAD_HTML BIBP_BIBHOST BIBP_GLOBAL_SERVER |
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
38 \ BLOCK_MULTI_BOOKMARKS BOLD_H1 BOLD_HEADERS BOLD_NAME_ANCHORS |
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
39 \ BOOKMARK_FILE BROKEN_FTP_EPSV BROKEN_FTP_RETR BZIP2_PATH |
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
40 \ CASE_SENSITIVE_ALWAYS_ON CASE_SENSITIVE_SEARCHING CHARACTER_SET |
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
41 \ CHARSETS_DIRECTORY CHARSET_SWITCH_RULES CHECKMAIL CHMOD_PATH |
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
42 \ COLLAPSE_BR_TAGS COLOR COLOR_STYLE COMPRESS_PATH CONNECT_TIMEOUT |
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
43 \ COOKIE_ACCEPT_DOMAINS COOKIE_FILE COOKIE_LOOSE_INVALID_DOMAINS |
5277 | 44 \ COOKIE_QUERY_INVALID_DOMAINS COOKIE_REJECT_DOMAINS COOKIE_SAVE_FILE |
45 \ COOKIE_STRICT_INVALID_DOMAINS COPY_PATH CSO_PROXY CSWING_PATH | |
46 \ DEBUGSECS DEFAULT_BOOKMARK_FILE DEFAULT_CACHE_SIZE DEFAULT_COLORS | |
47 \ DEFAULT_EDITOR DEFAULT_INDEX_FILE DEFAULT_KEYPAD_MODE | |
48 \ DEFAULT_KEYPAD_MODE_IS_NUMBERS_AS_ARROWS DEFAULT_USER_MODE | |
49 \ DEFAULT_VIRTUAL_MEMORY_SIZE DELAYSECS DIRED_MENU DIR_LIST_ORDER | |
50 \ DIR_LIST_STYLE DISPLAY DISPLAY_CHARSET_CHOICE DOWNLOADER EMACS_KEYS | |
51 \ EMACS_KEYS_ALWAYS_ON ENABLE_LYNXRC ENABLE_SCROLLBACK EXTERNAL | |
52 \ FILE_EDITOR FILE_SORTING_METHOD FINGER_PROXY FOCUS_WINDOW | |
53 \ FORCE_8BIT_TOUPPER FORCE_COOKIE_PROMPT FORCE_EMPTY_HREFLESS_A | |
54 \ FORCE_SSL_COOKIES_SECURE FORCE_SSL_PROMPT FORMS_OPTIONS FTP_FORMAT | |
55 \ FTP_PASSIVE FTP_PROXY GLOBAL_EXTENSION_MAP GLOBAL_MAILCAP | |
56 \ GOPHER_PROXY GOTOBUFFER GZIP_PATH HELPFILE HIDDEN_LINK_MARKER | |
57 \ HISTORICAL_COMMENTS HTMLSRC_ATTRNAME_XFORM HTMLSRC_TAGNAME_XFORM | |
58 \ HTTPS_PROXY HTTP_PROXY INCLUDE INFLATE_PATH INFOSECS INSTALL_PATH | |
59 \ JUMPBUFFER JUMPFILE JUMP_PROMPT JUSTIFY JUSTIFY_MAX_VOID_PERCENT | |
60 \ KBLAYOUT KEYBOARD_LAYOUT KEYMAP KEYPAD_MODE | |
61 \ LEFTARROW_IN_TEXTFIELD_PROMPT LINEEDIT_MODE LIST_FORMAT | |
62 \ LIST_NEWS_DATES LIST_NEWS_NUMBERS LOCALE_CHARSET LOCALHOST_ALIAS | |
63 \ LOCAL_DOMAIN LOCAL_EXECUTION_LINKS_ALWAYS_ON | |
64 \ LOCAL_EXECUTION_LINKS_ON_BUT_NOT_REMOTE LYNXCGI_DOCUMENT_ROOT | |
65 \ LYNXCGI_ENVIRONMENT LYNX_HOST_NAME LYNX_SIG_FILE MAIL_ADRS | |
66 \ MAIL_SYSTEM_ERROR_LOGGING MAKE_LINKS_FOR_ALL_IMAGES | |
67 \ MAKE_PSEUDO_ALTS_FOR_INLINES MAX_COOKIES_BUFFER MAX_COOKIES_DOMAIN | |
68 \ MAX_COOKIES_GLOBAL MESSAGESECS MINIMAL_COMMENTS MKDIR_PATH | |
69 \ MULTI_BOOKMARK MULTI_BOOKMARK_SUPPORT MV_PATH NCR_IN_BOOKMARKS | |
70 \ NESTED_TABLES NEWSPOST_PROXY NEWSREPLY_PROXY NEWS_CHUNK_SIZE | |
71 \ NEWS_MAX_CHUNK NEWS_POSTING NEWS_PROXY NNTPSERVER NNTP_PROXY | |
72 \ NONRESTARTING_SIGWINCH NO_DOT_FILES NO_FILE_REFERER | |
73 \ NO_FORCED_CORE_DUMP NO_FROM_HEADER NO_ISMAP_IF_USEMAP NO_MARGINS | |
74 \ NO_PAUSE NO_PROXY NO_REFERER_HEADER NO_TABLE_CENTER NO_TITLE | |
75 \ NUMBER_FIELDS_ON_LEFT NUMBER_LINKS_ON_LEFT OUTGOING_MAIL_CHARSET | |
76 \ PARTIAL PARTIAL_THRES PERSISTENT_COOKIES PERSONAL_EXTENSION_MAP | |
77 \ PERSONAL_MAILCAP PERSONAL_MAIL_ADDRESS POSITIONABLE_EDITOR | |
78 \ PREFERRED_CHARSET PREFERRED_ENCODING PREFERRED_LANGUAGE | |
79 \ PREFERRED_MEDIA_TYPES PREPEND_BASE_TO_SOURCE | |
80 \ PREPEND_CHARSET_TO_SOURCE PRETTYSRC PRETTYSRC_SPEC | |
81 \ PRETTYSRC_VIEW_NO_ANCHOR_NUMBERING PRINTER QUIT_DEFAULT_YES RAW_MODE | |
82 \ READ_TIMEOUT REFERER_WITH_QUERY REPLAYSECS REUSE_TEMPFILES | |
83 \ RLOGIN_PATH RM_PATH RMDIR_PATH RULE RULESFILE | |
84 \ RUN_ALL_EXECUTION_LINKS RUN_EXECUTION_LINKS_LOCAL SAVE_SPACE | |
85 \ SCAN_FOR_BURIED_NEWS_REFS SCREEN_SIZE SCROLLBAR SCROLLBAR_ARROW | |
86 \ SEEK_FRAG_AREA_IN_CUR SEEK_FRAG_MAP_IN_CUR SELECT_POPUPS | |
87 \ SEND_USERAGENT SESSION_FILE SESSION_LIMIT SET_COOKIES SETFONT_PATH | |
88 \ SHOW_COLOR SHOW_CURSOR SHOW_DOTFILES SHOW_KB_NAME SHOW_KB_RATE | |
89 \ SNEWSPOST_PROXY SNEWSREPLY_PROXY SNEWS_PROXY SOFT_DQUOTES | |
90 \ SOURCE_CACHE SOURCE_CACHE_FOR_ABORTED SSL_CERT_FILE STARTFILE | |
91 \ STATUS_BUFFER_SIZE STRIP_DOTDOT_URLS SUBSTITUTE_UNDERSCORES | |
92 \ SUB_BOOKMARKS SUFFIX SUFFIX_ORDER SYSLOG_REQUESTED_URLS SYSLOG_TEXT | |
93 \ SYSTEM_EDITOR SYSTEM_MAIL SYSTEM_MAIL_FLAGS TAGSOUP TAR_PATH | |
94 \ TELNET_PATH TEXTFIELDS_NEED_ACTIVATION TIMEOUT TN3270_PATH | |
95 \ TOUCH_PATH TRIM_INPUT_FIELDS TRUSTED_EXEC TRUSTED_LYNXCGI | |
96 \ UNCOMPRESS_PATH UNDERLINE_LINKS UNZIP_PATH UPLOADER | |
97 \ URL_DOMAIN_PREFIXES URL_DOMAIN_SUFFIXES USERAGENT USER_MODE | |
98 \ USE_FIXED_RECORDS USE_MOUSE USE_SELECT_POPUPS UUDECODE_PATH | |
99 \ VERBOSE_IMAGES VIEWER VISITED_LINKS VI_KEYS VI_KEYS_ALWAYS_ON | |
100 \ WAIS_PROXY XHTML_PARSING XLOADIMAGE_COMMAND ZCAT_PATH ZIP_PATH | |
33756
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
101 \ TRIM_BLANK_LINES GUESS_SCHEME HTTP_PROTOCOL HTML5_CHARSETS |
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
102 \ TRIM_BLANK_LINES PREFERRED_CONTENT_TYPE SSL_CLIENT_CERT_FILE |
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
103 \ SSL_CLIENT_KEY_FILE MAX_URI_SIZE UNIQUE_URLS MESSAGE_LANGUAGE |
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
104 \ CONV_JISX0201KANA WAIT_VIEWER_TERMINATION BLAT_MAIL ALT_BLAT_MAIL |
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
105 \ DONT_WRAP_PRE TRACK_INTERNAL_LINKS FORCE_HTML HIDDENLINKS SHORT_URL |
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
106 \ LISTONLY LIST_INLINE LOCALHOST WITH_BACKSPACES |
5277 | 107 \ contained nextgroup=lynxDelimiter |
108 syn keyword lynxRCOption accept_all_cookies assume_charset auto_session | |
109 \ bookmark_file case_sensitive_searching character_set | |
33756
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
110 \ collapse_br_tags cookie_accept_domains cookie_file |
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
111 \ cookie_loose_invalid_domains cookie_query_invalid_domains |
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
112 \ cookie_reject_domains cookie_strict_invalid_domain |
5277 | 113 \ cookie_strict_invalid_domains dir_list_style display emacs_keys |
114 \ file_editor file_sorting_method force_cookie_prompt force_ssl_prompt | |
33756
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
115 \ ftp_passive html5_charsets http_protocol kblayout keypad_mode |
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
116 \ lineedit_mode locale_charset make_links_for_all_images |
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
117 \ make_pseudo_alts_for_inlines multi_bookmark no_pause |
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
118 \ personal_mail_address preferred_charset preferred_encoding |
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
119 \ preferred_language preferred_media_types raw_mode |
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
120 \ run_all_execution_links run_execution_links_local |
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
121 \ run_execution_links_on_local_files scrollbar select_popups |
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
122 \ send_useragent session_file set_cookies show_color show_cursor |
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
123 \ show_dotfiles show_kb_rate sub_bookmarks tagsoup underline_links |
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
124 \ useragent user_mode verbose_images vi_keys visited_links |
5277 | 125 \ contained nextgroup=lynxDelimiter |
126 syn case match | |
127 " }}} | |
128 | |
129 " cfg2html.pl formatting directives | |
130 syn match lynxFormatDir "^\.h\d\s.*$" | |
33756
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
131 syn match lynxFormatDir "^\.\%(ex\|nf\)\%(\s\+\d\+\)\=$" |
5277 | 132 syn match lynxFormatDir "^\.fi$" |
33756
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
133 syn match lynxFormatDir "^\.url\>" |
7 | 134 |
1121 | 135 hi def link lynxBoolean Boolean |
136 hi def link lynxComment Comment | |
137 hi def link lynxDelimiter Special | |
138 hi def link lynxFormatDir Special | |
33756
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
139 hi def link lynxHttpProtocol Constant |
5277 | 140 hi def link lynxNone Constant |
1121 | 141 hi def link lynxNumber Number |
142 hi def link lynxOption Identifier | |
5277 | 143 hi def link lynxRCOption lynxOption |
1121 | 144 hi def link lynxTodo Todo |
7 | 145 |
146 let b:current_syntax = "lynx" | |
147 | |
1121 | 148 let &cpo = s:cpo_save |
149 unlet s:cpo_save | |
150 | |
33756
da55eac05ef7
runtime(lynx): Update for Lynx 2.8.9 (#13510)
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
151 " vim: nowrap sw=2 sts=2 ts=8 noet fdm=marker: |