annotate runtime/syntax/slrnrc.vim @ 2859:ce1dce2af2a3 v7.3.203

updated for version 7.3.203 Problem: MS-Windows: Can't run an external command without a console window. Solution: Support ":!start /b cmd". (Xaizek)
author Bram Moolenaar <bram@vim.org>
date Wed, 25 May 2011 17:06:22 +0200
parents a209672376fd
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
2 " Language: Slrn setup file (based on slrn 0.9.8.1)
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
3 " Maintainer: Preben 'Peppe' Guldberg <peppe-vim@wielders.org>
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
4 " Last Change: 23 April 2006
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 syn keyword slrnrcTodo contained Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " In some places whitespace is illegal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn match slrnrcSpaceError contained "\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match slrnrcNumber contained "-\=\<\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match slrnrcNumber contained +'[^']\+'+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match slrnrcSpecKey contained +\(\\[er"']\|\^[^'"]\|\\\o\o\o\)+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match slrnrcKey contained "\S\+" contains=slrnrcSpecKey
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn region slrnrcKey contained start=+"+ skip=+\\"+ end=+"+ oneline contains=slrnrcSpecKey
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn region slrnrcKey contained start=+'+ skip=+\\'+ end=+'+ oneline contains=slrnrcSpecKey
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match slrnrcSpecChar contained +'+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match slrnrcSpecChar contained +\\[n"]+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match slrnrcSpecChar contained "%[dfmnrs%]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match slrnrcString contained /[^ \t%"']\+/ contains=slrnrcSpecChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn region slrnrcString contained start=+"+ skip=+\\"+ end=+"+ oneline contains=slrnrcSpecChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match slrnSlangPreCondit "^#\s*ifn\=\(def\>\|false\>\|true\>\|\$\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match slrnSlangPreCondit "^#\s*e\(lif\|lse\|ndif\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match slrnrcComment "%.*$" contains=slrnrcTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword slrnrcVarInt contained abort_unmodified_edits article_window_page_overlap auto_mark_article_as_read beep broken_xref broken_xref cc_followup check_new_groups
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword slrnrcVarInt contained color_by_score confirm_actions custom_sort_by_threads display_cursor_bar drop_bogus_groups editor_uses_mime_charset emphasized_text_mask
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword slrnrcVarInt contained emphasized_text_mode fold_headers fold_headers followup_strip_signature force_authentication force_authentication generate_date_header
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword slrnrcVarInt contained generate_email_from generate_email_from generate_message_id grouplens_port hide_pgpsignature hide_quotes hide_signature
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword slrnrcVarInt contained hide_verbatim_marks hide_verbatim_text highlight_unread_subjects highlight_urls ignore_signature kill_score lines_per_update
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword slrnrcVarInt contained mail_editor_is_mua max_low_score max_queued_groups min_high_score mouse netiquette_warnings new_subject_breaks_threads no_autosave
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword slrnrcVarInt contained no_backups prefer_head process_verbatim_marks query_next_article query_next_group query_read_group_cutoff read_active reject_long_lines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword slrnrcVarInt contained scroll_by_page show_article show_thread_subject simulate_graphic_chars smart_quote sorting_method spoiler_char spoiler_char
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword slrnrcVarInt contained spoiler_display_mode spoiler_display_mode spool_check_up_on_nov spool_check_up_on_nov uncollapse_threads unsubscribe_new_groups use_blink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword slrnrcVarInt contained use_color use_flow_control use_grouplens use_grouplens use_header_numbers use_inews use_inews use_localtime use_metamail use_mime use_mime
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword slrnrcVarInt contained use_recommended_msg_id use_slrnpull use_slrnpull use_tilde use_tmpdir use_uudeview use_uudeview warn_followup_to wrap_flags wrap_method
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword slrnrcVarInt contained write_newsrc_flags
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 " Listed for removal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword slrnrcVarInt contained author_display display_author_realname display_score group_dsc_start_column process_verbatum_marks prompt_next_group query_reconnect
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword slrnrcVarInt contained show_descriptions use_xgtitle
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 " Match as a "string" too
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn region slrnrcVarIntStr contained matchgroup=slrnrcVarInt start=+"+ end=+"+ oneline contains=slrnrcVarInt,slrnrcSpaceError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn keyword slrnrcVarStr contained Xbrowser art_help_line art_status_line cansecret_file cc_post_string charset custom_headers custom_sort_order decode_directory
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn keyword slrnrcVarStr contained editor_command failed_posts_file followup_custom_headers followup_date_format followup_string followupto_string group_help_line
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn keyword slrnrcVarStr contained group_status_line grouplens_host grouplens_pseudoname header_help_line header_status_line hostname inews_program macro_directory
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn keyword slrnrcVarStr contained mail_editor_command metamail_command mime_charset non_Xbrowser organization overview_date_format post_editor_command post_object
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn keyword slrnrcVarStr contained postpone_directory printer_name quote_string realname reply_custom_headers reply_string replyto save_directory save_posts save_replies
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn keyword slrnrcVarStr contained score_editor_command scorefile sendmail_command server_object signature signoff_string spool_active_file spool_activetimes_file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn keyword slrnrcVarStr contained spool_inn_root spool_newsgroups_file spool_nov_file spool_nov_root spool_overviewfmt_file spool_root supersedes_custom_headers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn keyword slrnrcVarStr contained top_status_line username
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 " Listed for removal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn keyword slrnrcVarStr contained followup cc_followup_string
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 " Match as a "string" too
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn region slrnrcVarStrStr contained matchgroup=slrnrcVarStr start=+"+ end=+"+ oneline contains=slrnrcVarStr,slrnrcSpaceError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 " Various commands
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 syn region slrnrcCmdLine matchgroup=slrnrcCmd start="\<\(autobaud\|color\|compatible_charsets\|group_display_format\|grouplens_add\|header_display_format\|ignore_quotes\|include\|interpret\|mono\|nnrpaccess\|posting_host\|server\|set\|setkey\|strip_re_regexp\|strip_sig_regexp\|strip_was_regexp\|unsetkey\|visible_headers\)\>" end="$" oneline contains=slrnrc\(String\|Comment\)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 " Listed for removal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn region slrnrcCmdLine matchgroup=slrnrcCmd start="\<\(cc_followup_string\|decode_directory\|editor_command\|followup\|hostname\|organization\|quote_string\|realname\|replyto\|scorefile\|signature\|username\)\>" end="$" oneline contains=slrnrc\(String\|Comment\)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 " Setting variables
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 syn keyword slrnrcSet contained set
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn match slrnrcSetStr "^\s*set\s\+\S\+" skipwhite nextgroup=slrnrcString contains=slrnrcSet,slrnrcVarStr\(Str\)\=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn match slrnrcSetInt contained "^\s*set\s\+\S\+" contains=slrnrcSet,slrnrcVarInt\(Str\)\=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 syn match slrnrcSetIntLine "^\s*set\s\+\S\+\s\+\(-\=\d\+\>\|'[^']\+'\)" contains=slrnrcSetInt,slrnrcNumber,slrnrcVarInt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 " Color definitions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 syn match slrnrcColorObj contained "\<quotes\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 syn keyword slrnrcColorObj contained article author boldtext box cursor date description error frame from_myself group grouplens_display header_name header_number headers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 syn keyword slrnrcColorObj contained high_score italicstext menu menu_press message neg_score normal pgpsignature pos_score quotes response_char selection signature status
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 syn keyword slrnrcColorObj contained subject thread_number tilde tree underlinetext unread_subject url verbatim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 " Listed for removal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 syn keyword slrnrcColorObj contained verbatum
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 syn region slrnrcColorObjStr contained matchgroup=slrnrcColorObj start=+"+ end=+"+ oneline contains=slrnrcColorObj,slrnrcSpaceError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 syn keyword slrnrcColorVal contained default
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 syn keyword slrnrcColorVal contained black blue brightblue brightcyan brightgreen brightmagenta brightred brown cyan gray green lightgray magenta red white yellow
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 syn region slrnrcColorValStr contained matchgroup=slrnrcColorVal start=+"+ end=+"+ oneline contains=slrnrcColorVal,slrnrcSpaceError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 " Mathcing a function with three arguments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 syn keyword slrnrcColor contained color
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 syn match slrnrcColorInit contained "^\s*color\s\+\S\+" skipwhite nextgroup=slrnrcColorVal\(Str\)\= contains=slrnrcColor\(Obj\|ObjStr\)\=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 syn match slrnrcColorLine "^\s*color\s\+\S\+\s\+\S\+" skipwhite nextgroup=slrnrcColorVal\(Str\)\= contains=slrnrcColor\(Init\|Val\|ValStr\)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 " Mono settings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 syn keyword slrnrcMonoVal contained blink bold none reverse underline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 syn region slrnrcMonoValStr contained matchgroup=slrnrcMonoVal start=+"+ end=+"+ oneline contains=slrnrcMonoVal,slrnrcSpaceError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 " Color object is inherited
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 " Mono needs at least one argument
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 syn keyword slrnrcMono contained mono
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 syn match slrnrcMonoInit contained "^\s*mono\s\+\S\+" contains=slrnrcMono,slrnrcColorObj\(Str\)\=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 syn match slrnrcMonoLine "^\s*mono\s\+\S\+\s\+\S.*" contains=slrnrcMono\(Init\|Val\|ValStr\),slrnrcComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 " Functions in article mode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 syn keyword slrnrcFunArt contained article_bob article_eob article_left article_line_down article_line_up article_page_down article_page_up article_right article_search
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 syn keyword slrnrcFunArt contained author_search_backward author_search_forward browse_url cancel catchup catchup_all create_score decode delete delete_thread digit_arg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 syn keyword slrnrcFunArt contained enlarge_article_window evaluate_cmd exchange_mark expunge fast_quit followup forward forward_digest get_children_headers get_parent_header
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 syn keyword slrnrcFunArt contained goto_article goto_last_read grouplens_rate_article header_bob header_eob header_line_down header_line_up header_page_down header_page_up
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 syn keyword slrnrcFunArt contained help hide_article locate_article mark_spot next next_high_score next_same_subject pipe post post_postponed previous print quit redraw
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 syn keyword slrnrcFunArt contained repeat_last_key reply request save show_spoilers shrink_article_window skip_quotes skip_to_next_group skip_to_previous_group
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 syn keyword slrnrcFunArt contained subject_search_backward subject_search_forward supersede suspend tag_header toggle_collapse_threads toggle_header_formats
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 7
diff changeset
122 syn keyword slrnrcFunArt contained toggle_header_tag toggle_headers toggle_pgpsignature toggle_quotes toggle_rot13 toggle_signature toggle_sort toggle_verbatim_marks
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 syn keyword slrnrcFunArt contained toggle_verbatim_text uncatchup uncatchup_all undelete untag_headers view_scores wrap_article zoom_article_window
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 " Listed for removal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 syn keyword slrnrcFunArt contained art_bob art_eob art_xpunge article_linedn article_lineup article_pagedn article_pageup down enlarge_window goto_beginning goto_end left
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 syn keyword slrnrcFunArt contained locate_header_by_msgid pagedn pageup pipe_article prev print_article right scroll_dn scroll_up shrink_window skip_to_prev_group
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 syn keyword slrnrcFunArt contained toggle_show_author up
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 " Functions in group mode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 syn keyword slrnrcFunGroup contained add_group bob catchup digit_arg eob evaluate_cmd group_search group_search_backward group_search_forward help line_down line_up move_group
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 syn keyword slrnrcFunGroup contained page_down page_up post post_postponed quit redraw refresh_groups repeat_last_key save_newsrc select_group subscribe suspend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 syn keyword slrnrcFunGroup contained toggle_group_formats toggle_hidden toggle_list_all toggle_scoring transpose_groups uncatchup unsubscribe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 " Listed for removal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 syn keyword slrnrcFunGroup contained down group_bob group_eob pagedown pageup toggle_group_display uncatch_up up
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 " Functions in readline mode (actually from slang's slrline.c)
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 7
diff changeset
139 syn keyword slrnrcFunRead contained bdel bol complete cycle del delbol delbow deleol down enter eol left quoted_insert right self_insert trim up
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 " Binding keys
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 syn keyword slrnrcSetkeyObj contained article group readline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 syn region slrnrcSetkeyObjStr contained matchgroup=slrnrcSetkeyObj start=+"+ end=+"+ oneline contains=slrnrcSetkeyObj
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 syn match slrnrcSetkeyArt contained '\("\=\)\<article\>\1\s\+\S\+' skipwhite nextgroup=slrnrcKey contains=slrnrcSetKeyObj\(Str\)\=,slrnrcFunArt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 syn match slrnrcSetkeyGroup contained '\("\=\)\<group\>\1\s\+\S\+' skipwhite nextgroup=slrnrcKey contains=slrnrcSetKeyObj\(Str\)\=,slrnrcFunGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 syn match slrnrcSetkeyRead contained '\("\=\)\<readline\>\1\s\+\S\+' skipwhite nextgroup=slrnrcKey contains=slrnrcSetKeyObj\(Str\)\=,slrnrcFunRead
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 syn match slrnrcSetkey "^\s*setkey\>" skipwhite nextgroup=slrnrcSetkeyArt,slrnrcSetkeyGroup,slrnrcSetkeyRead
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 " Unbinding keys
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 syn match slrnrcUnsetkey '^\s*unsetkey\s\+\("\)\=\(article\|group\|readline\)\>\1' skipwhite nextgroup=slrnrcKey contains=slrnrcSetkeyObj\(Str\)\=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 if version >= 508 || !exists("did_slrnrc_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 let did_slrnrc_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 HiLink slrnrcTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 HiLink slrnrcSpaceError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 HiLink slrnrcNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 HiLink slrnrcSpecKey SpecialChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 HiLink slrnrcKey String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 HiLink slrnrcSpecChar SpecialChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 HiLink slrnrcString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 HiLink slrnSlangPreCondit Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 HiLink slrnrcComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 HiLink slrnrcVarInt Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 HiLink slrnrcVarStr Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 HiLink slrnrcCmd slrnrcSet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 HiLink slrnrcSet Operator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 HiLink slrnrcColor Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 HiLink slrnrcColorObj Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 HiLink slrnrcColorVal String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 HiLink slrnrcMono Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 HiLink slrnrcMonoObj Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 HiLink slrnrcMonoVal String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 HiLink slrnrcFunArt Macro
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 HiLink slrnrcFunGroup Macro
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 HiLink slrnrcFunRead Macro
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 HiLink slrnrcSetkeyObj Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 HiLink slrnrcSetkey Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 HiLink slrnrcUnsetkey slrnrcSetkey
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 let b:current_syntax = "slrnrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 "EOF vim: ts=8 noet tw=120 sw=8 sts=0