annotate runtime/syntax/muttrc.vim @ 937:de8224965034 v7.0.063

updated for version 7.0-063
author vimboss
date Wed, 16 Aug 2006 20:02:22 +0000
parents a209672376fd
children e63691e7c504
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Mutt setup files
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
3 " Original: Preben 'Peppe' Guldberg <peppe-vim@wielders.org>
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
4 " Maintainer: Kyle Wheeler <kyle-muttrc.vim@memoryhole.net>
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
5 " Last Change: 22 Apr 2006
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
7 " This file covers mutt version 1.5.11
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
8 " Included are also a few features from 1.4.2.1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " Set the keyword characters
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 set isk=@,48-57,_,-
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 setlocal isk=@,48-57,_,-
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match muttrcComment "^#.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match muttrcComment "[^\\]#.*$"lc=1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 " Escape sequences (back-tick and pipe goes here too)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match muttrcEscape +\\[#tnr"'Cc]+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match muttrcEscape +[`|]+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 " The variables takes the following arguments
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
33 syn match muttrcString "=\s*[^ #"'`]\+"lc=1 contains=muttrcEscape
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
34 syn region muttrcString start=+"+ms=e skip=+\\"+ end=+"+ contains=muttrcEscape,muttrcSet,muttrcUnset,muttrcReset,muttrcToggle,muttrcMacro,muttrcCommand,muttrcAction
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
35 syn region muttrcString start=+'+ms=e skip=+\\'+ end=+'+ contains=muttrcEscape,muttrcSet,muttrcUnset,muttrcReset,muttrcToggle,muttrcMacro,muttrcCommand,muttrcAction
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
36
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
37 syn region muttrcShellString matchgroup=muttrcEscape keepend start=+`+ skip=+\\`+ end=+`+ contains=muttrcVarStr,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcCommand,muttrcSet
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
38
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
39 syn match muttrcRXChars contained /[^\\][][.*?+]\+/hs=s+1
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
40 syn match muttrcRXChars contained /[][|()][.*?+]*/
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
41 syn match muttrcRXChars contained /'^/ms=s+1
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
42 syn match muttrcRXChars contained /$'/me=e-1
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
43 syn match muttrcRXChars contained /\\/
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
44 syn region muttrcRXString contained start=+'+ skip=+\\'+ end=+'+ contains=muttrcRXChars
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
45 syn region muttrcRXString contained start=+"+ skip=+\\"+ end=+"+ contains=muttrcRXChars
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
46
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
47 syn region muttrcRXPat contained start=+'+ skip=+\\'+ end=+'\s*+ keepend skipwhite contains=muttrcRXString nextgroup=muttrcRXPat
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
48 syn region muttrcRXPat contained start=+"+ skip=+\\"+ end=+"\s*+ keepend skipwhite contains=muttrcRXString nextgroup=muttrcRXPat
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
49 syn match muttrcRXPat contained /[^-'"#!]\S\+\%(\s\|$\)/ skipwhite contains=muttrcRXChars nextgroup=muttrcRXPat
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
50 syn match muttrcRXDef contained "-rx\s\+" skipwhite nextgroup=muttrcRXPat
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn match muttrcSpecial +\(['"]\)!\1+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 " Numbers and Quadoptions may be surrounded by " or '
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn match muttrcNumber /=\s*\d\+/lc=1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn match muttrcNumber /=\s*"\d\+"/lc=1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn match muttrcNumber /=\s*'\d\+'/lc=1
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
58 syn match muttrcQuadopt +=\s*\%(ask-\)\=\%(yes\|no\)+lc=1
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
59 syn match muttrcQuadopt +=\s*"\%(ask-\)\=\%(yes\|no\)"+lc=1
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
60 syn match muttrcQuadopt +=\s*'\%(ask-\)\=\%(yes\|no\)'+lc=1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 " Now catch some email addresses and headers (purified version from mail.vim)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn match muttrcEmail "[a-zA-Z0-9._-]\+@[a-zA-Z0-9./-]\+"
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
64 syn match muttrcHeader "\<\%(From\|To\|C[Cc]\|B[Cc][Cc]\|Reply-To\|Subject\|Return-Path\|Received\|Date\|Replied\|Attach\)\>:\="
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
66 syn match muttrcKeySpecial contained +\%(\\[Cc'"]\|\^\|\\[01]\d\{2}\)+
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
67 syn match muttrcKey contained "\S\+" contains=muttrcKeySpecial,muttrcKeyName
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
68 syn region muttrcKey contained start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=muttrcKeySpecial,muttrcKeyName
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
69 syn region muttrcKey contained start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=muttrcKeySpecial,muttrcKeyName
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
70 syn match muttrcKeyName contained "\<f\%(\d\|10\)\>"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn match muttrcKeyName contained "\\[trne]"
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
72 syn match muttrcKeyName contained "\c<\%(BackSpace\|Delete\|Down\|End\|Enter\|Esc\|Home\|Insert\|Left\|PageDown\|PageUp\|Return\|Right\|Space\|Tab\|Up\)>"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
74 syn keyword muttrcVarBool contained allow_8bit allow_ansi arrow_cursor ascii_chars askbcc
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
75 syn keyword muttrcVarBool contained askcc attach_split auto_tag autoedit beep beep_new
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
76 syn keyword muttrcVarBool contained bounce_delivered braille_friendly check_new collapse_unread
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
77 syn keyword muttrcVarBool contained confirmappend confirmcreate crypt_autoencrypt crypt_autopgp
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
78 syn keyword muttrcVarBool contained crypt_autosign crypt_autosmime crypt_replyencrypt
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
79 syn keyword muttrcVarBool contained crypt_replysign crypt_replysignencrypted crypt_timestamp
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
80 syn keyword muttrcVarBool contained crypt_use_gpgme delete_untag digest_collapse duplicate_threads
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
81 syn keyword muttrcVarBool contained edit_hdrs edit_headers encode_from envelope_from fast_reply
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
82 syn keyword muttrcVarBool contained fcc_attach fcc_clear followup_to force_name forw_decode
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
83 syn keyword muttrcVarBool contained forw_decrypt forw_quote forward_decode forward_decrypt
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
84 syn keyword muttrcVarBool contained forward_quote hdrs header help hidden_host hide_limited
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
85 syn keyword muttrcVarBool contained hide_missing hide_thread_subject hide_top_limited
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
86 syn keyword muttrcVarBool contained hide_top_missing ignore_list_reply_to imap_check_subscribed
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
87 syn keyword muttrcVarBool contained imap_list_subscribed imap_passive imap_peek imap_servernoise
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
88 syn keyword muttrcVarBool contained implicit_autoview include_onlyfirst keep_flagged
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
89 syn keyword muttrcVarBool contained mailcap_sanitize maildir_header_cache_verify maildir_trash
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
90 syn keyword muttrcVarBool contained mark_old markers menu_move_off menu_scroll meta_key
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
91 syn keyword muttrcVarBool contained metoo mh_purge mime_forward_decode narrow_tree pager_stop
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
92 syn keyword muttrcVarBool contained pgp_auto_decode pgp_auto_traditional pgp_autoencrypt
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
93 syn keyword muttrcVarBool contained pgp_autoinline pgp_autosign pgp_check_exit
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
94 syn keyword muttrcVarBool contained pgp_create_traditional pgp_ignore_subkeys pgp_long_ids
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
95 syn keyword muttrcVarBool contained pgp_replyencrypt pgp_replyinline pgp_replysign
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
96 syn keyword muttrcVarBool contained pgp_replysignencrypted pgp_retainable_sigs pgp_show_unusable
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
97 syn keyword muttrcVarBool contained pgp_strict_enc pgp_use_gpg_agent pipe_decode pipe_split
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
98 syn keyword muttrcVarBool contained pop_auth_try_all pop_last print_decode print_split
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
99 syn keyword muttrcVarBool contained prompt_after read_only reply_self resolve reverse_alias
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
100 syn keyword muttrcVarBool contained reverse_name reverse_realname rfc2047_parameters save_address
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
101 syn keyword muttrcVarBool contained save_empty save_name score sig_dashes sig_on_top
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
102 syn keyword muttrcVarBool contained smart_wrap smime_ask_cert_label smime_decrypt_use_default_key
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
103 syn keyword muttrcVarBool contained smime_is_default sort_re ssl_force_tls ssl_use_sslv2
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
104 syn keyword muttrcVarBool contained ssl_use_sslv3 ssl_use_tlsv1 ssl_usesystemcerts status_on_top
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
105 syn keyword muttrcVarBool contained strict_threads suspend text_flowed thorough_search
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
106 syn keyword muttrcVarBool contained thread_received tilde uncollapse_jump use_8bitmime
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
107 syn keyword muttrcVarBool contained use_domain use_envelope_from use_from use_idn use_ipv6
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 syn keyword muttrcVarBool contained user_agent wait_key weed wrap_search write_bcc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
110 syn keyword muttrcVarBool contained noallow_8bit noallow_ansi noarrow_cursor noascii_chars noaskbcc
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
111 syn keyword muttrcVarBool contained noaskcc noattach_split noauto_tag noautoedit nobeep nobeep_new
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
112 syn keyword muttrcVarBool contained nobounce_delivered nobraille_friendly nocheck_new nocollapse_unread
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
113 syn keyword muttrcVarBool contained noconfirmappend noconfirmcreate nocrypt_autoencrypt nocrypt_autopgp
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
114 syn keyword muttrcVarBool contained nocrypt_autosign nocrypt_autosmime nocrypt_replyencrypt
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
115 syn keyword muttrcVarBool contained nocrypt_replysign nocrypt_replysignencrypted nocrypt_timestamp
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
116 syn keyword muttrcVarBool contained nocrypt_use_gpgme nodelete_untag nodigest_collapse noduplicate_threads
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
117 syn keyword muttrcVarBool contained noedit_hdrs noedit_headers noencode_from noenvelope_from nofast_reply
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
118 syn keyword muttrcVarBool contained nofcc_attach nofcc_clear nofollowup_to noforce_name noforw_decode
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
119 syn keyword muttrcVarBool contained noforw_decrypt noforw_quote noforward_decode noforward_decrypt
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
120 syn keyword muttrcVarBool contained noforward_quote nohdrs noheader nohelp nohidden_host nohide_limited
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
121 syn keyword muttrcVarBool contained nohide_missing nohide_thread_subject nohide_top_limited
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
122 syn keyword muttrcVarBool contained nohide_top_missing noignore_list_reply_to noimap_check_subscribed
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 syn keyword muttrcVarBool contained noimap_list_subscribed noimap_passive noimap_peek noimap_servernoise
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
124 syn keyword muttrcVarBool contained noimplicit_autoview noinclude_onlyfirst nokeep_flagged
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
125 syn keyword muttrcVarBool contained nomailcap_sanitize nomaildir_header_cache_verify nomaildir_trash
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
126 syn keyword muttrcVarBool contained nomark_old nomarkers nomenu_move_off nomenu_scroll nometa_key
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
127 syn keyword muttrcVarBool contained nometoo nomh_purge nomime_forward_decode nonarrow_tree nopager_stop
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
128 syn keyword muttrcVarBool contained nopgp_auto_decode nopgp_auto_traditional nopgp_autoencrypt
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
129 syn keyword muttrcVarBool contained nopgp_autoinline nopgp_autosign nopgp_check_exit
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
130 syn keyword muttrcVarBool contained nopgp_create_traditional nopgp_ignore_subkeys nopgp_long_ids
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
131 syn keyword muttrcVarBool contained nopgp_replyencrypt nopgp_replyinline nopgp_replysign
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
132 syn keyword muttrcVarBool contained nopgp_replysignencrypted nopgp_retainable_sigs nopgp_show_unusable
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
133 syn keyword muttrcVarBool contained nopgp_strict_enc nopgp_use_gpg_agent nopipe_decode nopipe_split
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
134 syn keyword muttrcVarBool contained nopop_auth_try_all nopop_last noprint_decode noprint_split
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
135 syn keyword muttrcVarBool contained noprompt_after noread_only noreply_self noresolve noreverse_alias
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
136 syn keyword muttrcVarBool contained noreverse_name noreverse_realname norfc2047_parameters nosave_address
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
137 syn keyword muttrcVarBool contained nosave_empty nosave_name noscore nosig_dashes nosig_on_top
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
138 syn keyword muttrcVarBool contained nosmart_wrap nosmime_ask_cert_label nosmime_decrypt_use_default_key
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
139 syn keyword muttrcVarBool contained nosmime_is_default nosort_re nossl_force_tls nossl_use_sslv2
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
140 syn keyword muttrcVarBool contained nossl_use_sslv3 nossl_use_tlsv1 nossl_usesystemcerts nostatus_on_top
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
141 syn keyword muttrcVarBool contained nostrict_threads nosuspend notext_flowed nothorough_search
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
142 syn keyword muttrcVarBool contained nothread_received notilde nouncollapse_jump nouse_8bitmime
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
143 syn keyword muttrcVarBool contained nouse_domain nouse_envelope_from nouse_from nouse_idn nouse_ipv6
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
144 syn keyword muttrcVarBool contained nouser_agent nowait_key noweed nowrap_search nowrite_bcc
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
146 syn keyword muttrcVarBool contained invallow_8bit invallow_ansi invarrow_cursor invascii_chars invaskbcc
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
147 syn keyword muttrcVarBool contained invaskcc invattach_split invauto_tag invautoedit invbeep invbeep_new
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
148 syn keyword muttrcVarBool contained invbounce_delivered invbraille_friendly invcheck_new invcollapse_unread
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
149 syn keyword muttrcVarBool contained invconfirmappend invconfirmcreate invcrypt_autoencrypt invcrypt_autopgp
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
150 syn keyword muttrcVarBool contained invcrypt_autosign invcrypt_autosmime invcrypt_replyencrypt
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
151 syn keyword muttrcVarBool contained invcrypt_replysign invcrypt_replysignencrypted invcrypt_timestamp
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
152 syn keyword muttrcVarBool contained invcrypt_use_gpgme invdelete_untag invdigest_collapse invduplicate_threads
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
153 syn keyword muttrcVarBool contained invedit_hdrs invedit_headers invencode_from invenvelope_from invfast_reply
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
154 syn keyword muttrcVarBool contained invfcc_attach invfcc_clear invfollowup_to invforce_name invforw_decode
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
155 syn keyword muttrcVarBool contained invforw_decrypt invforw_quote invforward_decode invforward_decrypt
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 syn keyword muttrcVarBool contained invforward_quote invhdrs invheader invhelp invhidden_host invhide_limited
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
157 syn keyword muttrcVarBool contained invhide_missing invhide_thread_subject invhide_top_limited
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
158 syn keyword muttrcVarBool contained invhide_top_missing invignore_list_reply_to invimap_check_subscribed
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
159 syn keyword muttrcVarBool contained invimap_list_subscribed invimap_passive invimap_peek invimap_servernoise
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
160 syn keyword muttrcVarBool contained invimplicit_autoview invinclude_onlyfirst invkeep_flagged
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
161 syn keyword muttrcVarBool contained invmailcap_sanitize invmaildir_header_cache_verify invmaildir_trash
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
162 syn keyword muttrcVarBool contained invmark_old invmarkers invmenu_move_off invmenu_scroll invmeta_key
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
163 syn keyword muttrcVarBool contained invmetoo invmh_purge invmime_forward_decode invnarrow_tree invpager_stop
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
164 syn keyword muttrcVarBool contained invpgp_auto_decode invpgp_auto_traditional invpgp_autoencrypt
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
165 syn keyword muttrcVarBool contained invpgp_autoinline invpgp_autosign invpgp_check_exit
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
166 syn keyword muttrcVarBool contained invpgp_create_traditional invpgp_ignore_subkeys invpgp_long_ids
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
167 syn keyword muttrcVarBool contained invpgp_replyencrypt invpgp_replyinline invpgp_replysign
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
168 syn keyword muttrcVarBool contained invpgp_replysignencrypted invpgp_retainable_sigs invpgp_show_unusable
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
169 syn keyword muttrcVarBool contained invpgp_strict_enc invpgp_use_gpg_agent invpipe_decode invpipe_split
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
170 syn keyword muttrcVarBool contained invpop_auth_try_all invpop_last invprint_decode invprint_split
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
171 syn keyword muttrcVarBool contained invprompt_after invread_only invreply_self invresolve invreverse_alias
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
172 syn keyword muttrcVarBool contained invreverse_name invreverse_realname invrfc2047_parameters invsave_address
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
173 syn keyword muttrcVarBool contained invsave_empty invsave_name invscore invsig_dashes invsig_on_top
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
174 syn keyword muttrcVarBool contained invsmart_wrap invsmime_ask_cert_label invsmime_decrypt_use_default_key
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
175 syn keyword muttrcVarBool contained invsmime_is_default invsort_re invssl_force_tls invssl_use_sslv2
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
176 syn keyword muttrcVarBool contained invssl_use_sslv3 invssl_use_tlsv1 invssl_usesystemcerts invstatus_on_top
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
177 syn keyword muttrcVarBool contained invstrict_threads invsuspend invtext_flowed invthorough_search
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
178 syn keyword muttrcVarBool contained invthread_received invtilde invuncollapse_jump invuse_8bitmime
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
179 syn keyword muttrcVarBool contained invuse_domain invuse_envelope_from invuse_from invuse_idn invuse_ipv6
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
180 syn keyword muttrcVarBool contained invuser_agent invwait_key invweed invwrap_search invwrite_bcc
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
182 syn keyword muttrcVarQuad contained abort_nosubject abort_unmodified bounce copy
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
183 syn keyword muttrcVarQuad contained crypt_verify_sig delete forward_edit honor_followup_to
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
184 syn keyword muttrcVarQuad contained include mime_forward mime_forward_rest mime_fwd move
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
185 syn keyword muttrcVarQuad contained pgp_mime_auto pgp_verify_sig pop_delete pop_reconnect
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
186 syn keyword muttrcVarQuad contained postpone print quit recall reply_to ssl_starttls
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
188 syn keyword muttrcVarQuad contained noabort_nosubject noabort_unmodified nobounce nocopy
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
189 syn keyword muttrcVarQuad contained nocrypt_verify_sig nodelete noforward_edit nohonor_followup_to
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
190 syn keyword muttrcVarQuad contained noinclude nomime_forward nomime_forward_rest nomime_fwd nomove
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
191 syn keyword muttrcVarQuad contained nopgp_mime_auto nopgp_verify_sig nopop_delete nopop_reconnect
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 syn keyword muttrcVarQuad contained nopostpone noprint noquit norecall noreply_to nossl_starttls
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
194 syn keyword muttrcVarQuad contained invabort_nosubject invabort_unmodified invbounce invcopy
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
195 syn keyword muttrcVarQuad contained invcrypt_verify_sig invdelete invforward_edit invhonor_followup_to
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
196 syn keyword muttrcVarQuad contained invinclude invmime_forward invmime_forward_rest invmime_fwd invmove
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
197 syn keyword muttrcVarQuad contained invpgp_mime_auto invpgp_verify_sig invpop_delete invpop_reconnect
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 syn keyword muttrcVarQuad contained invpostpone invprint invquit invrecall invreply_to invssl_starttls
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
200 syn keyword muttrcVarNum contained connect_timeout history imap_keepalive mail_check menu_context net_inc
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
201 syn keyword muttrcVarNum contained pager_context pager_index_lines pgp_timeout pop_checkinterval read_inc
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
202 syn keyword muttrcVarNum contained score_threshold_delete score_threshold_flag score_threshold_read
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
203 syn keyword muttrcVarNum contained sendmail_wait sleep_time smime_timeout ssl_min_dh_prime_bits timeout
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
204 syn keyword muttrcVarNum contained wrapmargin write_inc
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
206 syn keyword muttrcVarStr contained alias_file alias_format attach_format attach_sep attribution
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
207 syn keyword muttrcVarStr contained certificate_file charset compose_format config_charset content_type
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
208 syn keyword muttrcVarStr contained date_format default_hook display_filter dotlock_program dsn_notify
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
209 syn keyword muttrcVarStr contained dsn_return editor entropy_file envelope_from_address escape folder
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
210 syn keyword muttrcVarStr contained folder_format forw_format forward_format from gecos_mask hdr_format
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
211 syn keyword muttrcVarStr contained header_cache header_cache_pagesize hostname imap_authenticators
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
212 syn keyword muttrcVarStr contained imap_delim_chars imap_headers imap_home_namespace imap_login imap_pass
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
213 syn keyword muttrcVarStr contained imap_user indent_str indent_string index_format ispell locale mailcap_path
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
214 syn keyword muttrcVarStr contained mask mbox mbox_type message_format mh_seq_flagged mh_seq_replied
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 syn keyword muttrcVarStr contained mh_seq_unseen mix_entry_format mixmaster msg_format pager pager_format
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
216 syn keyword muttrcVarStr contained pgp_clearsign_command pgp_decode_command pgp_decrypt_command
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
217 syn keyword muttrcVarStr contained pgp_encrypt_only_command pgp_encrypt_sign_command pgp_entry_format
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
218 syn keyword muttrcVarStr contained pgp_export_command pgp_getkeys_command pgp_good_sign pgp_import_command
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
219 syn keyword muttrcVarStr contained pgp_list_pubring_command pgp_list_secring_command pgp_sign_as
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
220 syn keyword muttrcVarStr contained pgp_sign_command pgp_sort_keys pgp_verify_command pgp_verify_key_command
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
221 syn keyword muttrcVarStr contained pipe_sep pop_authenticators pop_host pop_pass pop_user post_indent_str
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
222 syn keyword muttrcVarStr contained post_indent_string postponed preconnect print_cmd print_command
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
223 syn keyword muttrcVarStr contained query_command quote_regexp realname record reply_regexp send_charset
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
224 syn keyword muttrcVarStr contained sendmail shell signature simple_search smileys smime_ca_location
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
225 syn keyword muttrcVarStr contained smime_certificates smime_decrypt_command smime_default_key
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
226 syn keyword muttrcVarStr contained smime_encrypt_command smime_encrypt_with smime_get_cert_command
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
227 syn keyword muttrcVarStr contained smime_get_cert_email_command smime_get_signer_cert_command
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
228 syn keyword muttrcVarStr contained smime_import_cert_command smime_keys smime_pk7out_command smime_sign_as
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
229 syn keyword muttrcVarStr contained smime_sign_command smime_sign_opaque_command smime_verify_command
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
230 syn keyword muttrcVarStr contained smime_verify_opaque_command sort sort_alias sort_aux sort_browser
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
231 syn keyword muttrcVarStr contained spam_separator spoolfile ssl_ca_certificates_file ssl_client_cert
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
232 syn keyword muttrcVarStr contained status_chars status_format tmpdir to_chars tunnel visual
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
233
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
234 " Present in 1.4.2.1 (pgp_create_traditional was a bool then)
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
235 syn keyword muttrcVarBool contained imap_force_ssl imap_force_ssl noinvimap_force_ssl
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
236 "syn keyword muttrcVarQuad contained pgp_create_traditional nopgp_create_traditional invpgp_create_traditional
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
237 syn keyword muttrcVarStr contained alternates
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239 syn keyword muttrcMenu contained alias attach browser compose editor index pager postpone pgp mix query generic
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
240 syn match muttrcMenuList "\S\+" contained contains=muttrcMenu
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
241 syn match muttrcMenuCommas /,/ contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
243 syn keyword muttrcCommand auto_view alternative_order charset-hook exec unalternative_order
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
244 syn keyword muttrcCommand hdr_order iconv-hook ignore mailboxes my_hdr unmailboxes
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
245 syn keyword muttrcCommand pgp-hook push score source unauto_view unhdr_order
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
246 syn keyword muttrcCommand unhook unignore unmono unmy_hdr unscore
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
247 syn keyword muttrcCommand mime_lookup unmime_lookup spam ungroup
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
248 syn keyword muttrcCommand nospam unalternative_order
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
249
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
250 syn match muttrcAttachmentsMimeType contained "[*a-z0-9_-]\+/[*a-z0-9._-]\+\s*" skipwhite nextgroup=muttrcAttachmentsMimeType
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
251 syn match muttrcAttachmentsFlag contained "[+-]\%([AI]\|inline\|attachment\)\s\+" skipwhite nextgroup=muttrcAttachmentsMimeType
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
252 syn match muttrcAttachmentsLine "^\s*\%(un\)\?attachments\s\+" skipwhite nextgroup=muttrcAttachmentsFlag
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
253
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
254 syn match muttrcUnHighlightSpace contained "\%(\s\+\|\\$\)"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
255
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
256 syn keyword muttrcListsKeyword contained lists unlists
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
257 syn region muttrcListsLine keepend start=+^\s*\%(un\)\?lists\s+ skip=+\\$+ end=+$+ contains=muttrcListsKeyword,muttrcRXPat,muttrcGroupDef,muttrcUnHighlightSpace,muttrcComment
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
258
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
259 syn keyword muttrcSubscribeKeyword contained subscribe unsubscribe
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
260 syn region muttrcSubscribeLine keepend start=+^\s*\%(un\)\?subscribe\s+ skip=+\\$+ end=+$+ contains=muttrcSubscribeKeyword,muttrcRXPat,muttrcGroupDef,muttrcUnHighlightSpace,muttrcComment
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
261
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
262 syn keyword muttrcAlternateKeyword contained alternates unalternates
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
263 syn region muttrcAlternatesLine keepend start=+^\s*\%(un\)\?alternates\s+ skip=+\\$+ end=+$+ contains=muttrcAlternateKeyword,muttrcGroupDef,muttrcRXPat,muttrcUnHighlightSpace,muttrcComment
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
264
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
265 syn match muttrcVariable "\$[a-zA-Z_-]\+"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
266
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
267 syn match muttrcBadAction contained "[^<>]\+" contains=muttrcEmail
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
268 syn match muttrcFunction contained "\<\%(attach\|bounce\|copy\|delete\|display\|flag\|forward\|parent\|pipe\|postpone\|print\|recall\|resent\|save\|send\|tag\|undelete\)-message\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
269 syn match muttrcFunction contained "\<\%(delete\|next\|previous\|read\|tag\|undelete\)-thread\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
270 syn match muttrcFunction contained "\<\%(backward\|capitalize\|downcase\|forward\|kill\|upcase\)-word\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
271 syn match muttrcFunction contained "\<\%(delete\|filter\|first\|last\|next\|pipe\|previous\|print\|save\|select\|tag\|undelete\)-entry\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
272 syn match muttrcFunction contained "\<attach-\%(file\|key\)\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
273 syn match muttrcFunction contained "\<change-\%(dir\|folder\|folder-readonly\)\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
274 syn match muttrcFunction contained "\<check-\%(new\|traditional-pgp\)\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
275 syn match muttrcFunction contained "\<current-\%(bottom\|middle\|top\)\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
276 syn match muttrcFunction contained "\<decode-\%(copy\|save\)\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
277 syn match muttrcFunction contained "\<delete-\%(char\|pattern\|subthread\)\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
278 syn match muttrcFunction contained "\<display-\%(address\|toggle-weed\)\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
279 syn match muttrcFunction contained "\<edit\%(-\%(bcc\|cc\|description\|encoding\|fcc\|file\|from\|headers\|mime\|reply-to\|subject\|to\|type\)\)\?\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
280 syn match muttrcFunction contained "\<enter-\%(command\|mask\)\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
281 syn match muttrcFunction contained "\<half-\%(up\|down\)\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
282 syn match muttrcFunction contained "\<history-\%(up\|down\)\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
283 syn match muttrcFunction contained "\<kill-\%(eol\|eow\|line\)\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
284 syn match muttrcFunction contained "\<next-\%(line\|new\|page\|subthread\|undeleted\|unread\)\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
285 syn match muttrcFunction contained "\<previous-\%(line\|new\|page\|subthread\|undeleted\|unread\)\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
286 syn match muttrcFunction contained "\<search\%(-\%(next\|opposite\|reverse\|toggle\)\)\?\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
287 syn match muttrcFunction contained "\<show-\%(limit\|version\)\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
288 syn match muttrcFunction contained "\<sort-\%(mailbox\|reverse\)\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
289 syn match muttrcFunction contained "\<tag-\%(pattern\|prefix\)\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
290 syn match muttrcFunction contained "\<toggle-\%(mailboxes\|new\|quoted\|subscribed\|unlink\|write\)\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
291 syn match muttrcFunction contained "\<undelete-\%(pattern\|subthread\)\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
292 syn match muttrcFunction contained "\<collapse-\%(parts\|thread\|all\)\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
293 syn match muttrcFunction contained "\<view-\%(attach\|attachments\|file\|mailcap\|name\|text\)\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
294 syn match muttrcFunction contained "\<\%(backspace\|backward-char\|bol\|bottom\|bottom-page\|buffy-cycle\|clear-flag\|complete\%(-query\)\?\|copy-file\|create-alias\|detach-file\|eol\|exit\|extract-keys\|\%(imap-\)\?fetch-mail\|forget-passphrase\|forward-char\|group-reply\|help\|ispell\|jump\|limit\|list-reply\|mail\|mail-key\|mark-as-new\|middle-page\|new-mime\|pgp-menu\|query\|query-append\|quit\|quote-char\|read-subthread\|redraw-screen\|refresh\|rename-file\|reply\|select-new\|set-flag\|shell-escape\|skip-quoted\|sort\|subscribe\|sync-mailbox\|top\|top-page\|transpose-chars\|unsubscribe\|untag-pattern\|verify-key\|write-fcc\)\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
295 syn match muttrcAction contained "<[^>]\{-}>" contains=muttrcBadAction,muttrcFunction,muttrcKeyName
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
296
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
297 syn keyword muttrcSet set skipwhite nextgroup=muttrcVar.*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
298 syn keyword muttrcUnset unset skipwhite nextgroup=muttrcVar.*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
299 syn keyword muttrcReset reset skipwhite nextgroup=muttrcVar.*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
300 syn keyword muttrcToggle toggle skipwhite nextgroup=muttrcVar.*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
301
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
302 " First, functions that take regular expressions:
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
303 syn match muttrcRXHookNot contained /!\s*/ skipwhite nextgroup=muttrcRXString
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
304 syn match muttrcRXHooks /^\s*\%(account\|folder\)-hook\s\+/ skipwhite nextgroup=muttrcRXHookNot,muttrcRXString
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
305
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
306 " Now, functions that take patterns
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
307 syn match muttrcPatHookNot contained /!\s*/ skipwhite nextgroup=muttrcPattern
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
308 syn match muttrcPatHooks /^\s*\%(message\|mbox\|save\|fcc\%(-save\)\?\|send2\?\|reply\|crypt\)-hook\s\+/ nextgroup=muttrcPatHookNot,muttrcPattern
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
309
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
310 syn match muttrcBindFunction contained /\S\+\%(\s\|$\)/ skipwhite contains=muttrcFunction
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
311 syn match muttrcBindFunctionNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcBindFunction,muttrcBindFunctionNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
312 syn match muttrcBindKey contained /\S\+/ skipwhite contains=muttrcKey nextgroup=muttrcBindFunction,muttrcBindFunctionNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
313 syn match muttrcBindKeyNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcBindKey,muttrcBindKeyNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
314 syn match muttrcBindMenuList contained /\S\+/ skipwhite contains=muttrcMenu,muttrcMenuCommas nextgroup=muttrcBindKey,muttrcBindKeyNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
315 syn match muttrcBindMenuListNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcBindMenuList,muttrcBindMenuListNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
316 syn match muttrcBind /^\s*bind\s\?/ skipwhite nextgroup=muttrcBindMenuList,muttrcBindMenuListNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
317
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
318 syn match muttrcMacroKey contained /\S\+/ skipwhite contains=muttrcKey
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
319 syn match muttrcMacroKeyNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcMacroKey,muttrcMacroKeyNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
320 syn match muttrcMacroMenuList contained /\S\+/ skipwhite contains=muttrcMenu,muttrcMenuCommas nextgroup=muttrcMacroKey,muttrcMacroKeyNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
321 syn match muttrcMacroMenuListNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcMacroMenuList,muttrcMacroMenuListNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
322 syn match muttrcMacro /^\s*macro\s\?/ skipwhite nextgroup=muttrcMacroMenuList,muttrcMacroMenuListNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
323
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
324 syn match muttrcAddrContent contained "[a-zA-Z0-9._-]\+@[a-zA-Z0-9./-]\+\s*" skipwhite contains=muttrcEmail nextgroup=muttrcAddrContent
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
325 syn region muttrcAddrContent contained start=+'+ end=+'\s*+ skip=+\\'+ skipwhite contains=muttrcEmail nextgroup=muttrcAddrContent
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
326 syn region muttrcAddrContent contained start=+"+ end=+"\s*+ skip=+\\"+ skipwhite contains=muttrcEmail nextgroup=muttrcAddrContent
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
327 syn match muttrcAddrDef contained "-addr\s\+" skipwhite nextgroup=muttrcAddrContent
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
328
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
329 syn match muttrcGroupFlag contained "-group"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
330 syn region muttrcGroupDef contained start="-group\s\+" skip="\\$" end="\s" skipwhite keepend contains=muttrcGroupFlag,muttrcUnHighlightSpace
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
331
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
332 syn keyword muttrcGroupKeyword contained group ungroup
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
333 syn region muttrcGroupLine keepend start=+^\s*\%(un\)\?group\s+ skip=+\\$+ end=+$+ contains=muttrcGroupKeyword,muttrcGroupDef,muttrcAddrDef,muttrcRXDef,muttrcUnHighlightSpace,muttrcComment
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
334
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
335 syn match muttrcAliasGroupName contained /\w\+/ skipwhite nextgroup=muttrcAliasGroupDef,muttrcAliasAbbr,muttrcAliasNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
336 syn match muttrcAliasGroupDefNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasGroupName,muttrcAliasGroupDefNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
337 syn match muttrcAliasGroupDef contained /\s*-group/ skipwhite nextgroup=muttrcAliasGroupName,muttrcAliasGroupDefNL contains=muttrcGroupFlag
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
338 syn match muttrcAliasEmail contained /\S\+@\S\+/ contains=muttrcEmail nextgroup=muttrcAliasName,muttrcAliasNameNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
339 syn match muttrcAliasEncEmail contained /<[^>]\+>/ contains=muttrcEmail
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
340 syn match muttrcAliasEncEmailNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasEncEmail,muttrcAliasEncEmailNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
341 syn match muttrcAliasNameNoParens contained /[^<(@]\+\s\+/ nextgroup=muttrcAliasEncEmail,muttrcAliasEncEmailNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
342 syn region muttrcAliasName contained matchgroup=Type start=/(/ end=/)/ skipwhite
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
343 syn match muttrcAliasNameNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasName,muttrcAliasNameNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
344 syn match muttrcAliasENNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasEmail,muttrcAliasNameNoParens,muttrcAliasENNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
345 syn match muttrcAliasAbbr contained /\s*[^- \t]\S\+/ skipwhite nextgroup=muttrcAliasEmail,muttrcAliasNameNoParens,muttrcAliasENNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
346 syn match muttrcAliasNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasGroupDef,muttrcAliasAbbr,muttrcAliasNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
347 syn match muttrcAlias /^\s*alias\s/ skipwhite nextgroup=muttrcAliasGroupDef,muttrcAliasAbbr,muttrcAliasNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
348
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
349 syn match muttrcUnAliasAbbr contained "\s*\w\+\s*" skipwhite nextgroup=muttrcUnAliasAbbr,muttrcUnAliasNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
350 syn match muttrcUnAliasNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcUnAliasAbbr,muttrcUnAliasNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
351 syn match muttrcUnAlias /^\s*unalias\s\?/ nextgroup=muttrcUnAliasAbbr,muttrcUnAliasNL
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
352
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
353 syn match muttrcSimplePat contained "!\?\^\?[~][ADEFgGklNOpPQRSTuUvV=$]"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
354 syn match muttrcSimplePat contained "!\?\^\?[~][mnXz]\s\+\%([<>-][0-9]\+\|[0-9]\+[-][0-9]*\)"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
355 syn match muttrcSimplePat contained "!\?\^\?[~][dr]\s\+[0-9]\{2}\%(/[0-9]\{2}\%(/[0-9]\{2}\%([0-9]\{2}\)\)\?\)\?"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
356 syn match muttrcSimplePat contained "!\?\^\?[~][bBcCefhHiLstxy]\s\+" nextgroup=muttrcSimplePatRXContainer
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
357 syn match muttrcSimplePat contained "!\?\^\?[%][bBcCefhHiLstxy]\s\+" nextgroup=muttrcSimplePatGroup
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
358 "syn match muttrcSimplePat contained /"[^~=%][^"]*/ contains=muttrcRXPat
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
359 "syn match muttrcSimplePat contained /'[^~=%][^']*/ contains=muttrcRXPat
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
360 syn match muttrcSimplePatGroup contained /[a-zA-Z0-9]\+/
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
361 syn region muttrcSimplePatRXContainer contained keepend start=+"+ end=+"+ skip=+\\"+ contains=muttrcRXPat
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
362 syn region muttrcSimplePatRXContainer contained keepend start=+'+ end=+'+ skip=+\\'+ contains=muttrcRXPat
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
363 syn match muttrcSimplePatRXContainer contained /\S\+/ contains=muttrcRXPat
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
364 syn match muttrcSimplePatMetas contained /[(|)]/
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
365
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
366 syn region muttrcPattern contained keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcPatternInner
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
367 syn region muttrcPattern contained keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcPatternInner
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
368 syn match muttrcPattern contained "[~][A-Za-z]" contains=muttrcSimplePat
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
369 syn region muttrcPatternInner contained keepend start=+"[~=%!(^]+ms=s+1 skip=+\\"+ end=+"+me=e-1 contains=muttrcSimplePat,muttrcUnHighlightSpace,muttrcSimplePatMetas
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
370 syn region muttrcPatternInner contained keepend start=+'[~=%!(^]+ms=s+1 skip=+\\'+ end=+'+me=e-1 contains=muttrcSimplePat,muttrcUnHighlightSpace,muttrcSimplePatMetas
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
371
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
372 " Colour definitions takes object, foreground and background arguments (regexps excluded).
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
373 syn match muttrcColorMatchCount contained "[0-9]\+"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
374 syn match muttrcColorMatchCountNL contained skipwhite skipnl "\s*\\$" nextgroup=muttrcColorMatchCount,muttrcColorMatchCountNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
375 syn region muttrcColorRXPat contained start=+\s\+'+ skip=+\\'+ end=+'\s*+ keepend skipwhite contains=muttrcRXString nextgroup=muttrcColorMatchCount,muttrcColorMatchCountNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
376 syn region muttrcColorRXPat contained start=+\s\+"+ skip=+\\"+ end=+"\s*+ keepend skipwhite contains=muttrcRXString nextgroup=muttrcColorMatchCount,muttrcColorMatchCountNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
377 syn keyword muttrcColorField contained attachment body bold error hdrdefault header index indicator markers message normal quoted search signature status tilde tree underline
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
378 syn match muttrcColorField contained "\<quoted\d\=\>"
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
379 syn keyword muttrcColor contained black blue cyan default green magenta red white yellow
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
380 syn keyword muttrcColor contained brightblack brightblue brightcyan brightdefault brightgreen brightmagenta brightred brightwhite brightyellow
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
381 syn match muttrcColor contained "\<\%(bright\)\=color\d\{1,2}\>"
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
382 " Now for the structure of the color line
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
383 syn match muttrcColorRXNL contained skipwhite skipnl "\s*\\$" nextgroup=muttrcColorRXPat,muttrcColorRXNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
384 syn match muttrcColorBG contained skipwhite /\s*[$]\?\w\+/ contains=muttrcColor,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcColorRXPat,muttrcColorRXNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
385 syn match muttrcColorBGNL contained skipwhite skipnl "\s*\\$" nextgroup=muttrcColorBG,muttrcColorBGNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
386 syn match muttrcColorFG contained skipwhite /\s*[$]\?\w\+/ contains=muttrcColor,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcColorBG,muttrcColorBGNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
387 syn match muttrcColorFGNL contained skipwhite skipnl "\s*\\$" nextgroup=muttrcColorFG,muttrcColorFGNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
388 syn match muttrcColorContext contained skipwhite /\s*[$]\?\w\+/ contains=muttrcColorField,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcColorFG,muttrcColorFGNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
389 syn match muttrcColorNL contained skipwhite skipnl "\s*\\$" nextgroup=muttrcColorContext,muttrcColorNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
390 syn match muttrcColorKeyword contained skipwhite /^\s*color\s\+/ nextgroup=muttrcColorContext,muttrcColorNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
391 syn region muttrcColorLine keepend start=/^\s*color\s\+\%(index\)\@!/ skip=+\\$+ end=+$+ contains=muttrcColorKeyword,muttrcComment,muttrcUnHighlightSpace
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
392 " Now for the structure of the color index line
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
393 syn match muttrcPatternNL contained skipwhite skipnl "\s*\\$" nextgroup=muttrcPattern,muttrcPatternNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
394 syn match muttrcColorBGI contained skipwhite /\s*[$]\?\w\+\s*/ contains=muttrcColor,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcPattern,muttrcPatternNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
395 syn match muttrcColorBGNLI contained skipwhite skipnl "\s*\\$" nextgroup=muttrcColorBGI,muttrcColorBGNLI
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
396 syn match muttrcColorFGI contained skipwhite /\s*[$]\?\w\+/ contains=muttrcColor,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcColorBGI,muttrcColorBGNLI
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
397 syn match muttrcColorFGNLI contained skipwhite skipnl "\s*\\$" nextgroup=muttrcColorFGI,muttrcColorFGNLI
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
398 syn match muttrcColorContextI contained skipwhite /\s*index/ contains=muttrcUnHighlightSpace nextgroup=muttrcColorFGI,muttrcColorFGNLI
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
399 syn match muttrcColorNLI contained skipwhite skipnl "\s*\\$" nextgroup=muttrcColorContextI,muttrcColorNLI
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
400 syn match muttrcColorKeywordI contained skipwhite /^\s*color\s\+/ nextgroup=muttrcColorContextI,muttrcColorNLI
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
401 syn region muttrcColorLine keepend start=/^\s*color\s\+index/ skip=+\\$+ end=+$+ contains=muttrcColorKeywordI,muttrcComment,muttrcUnHighlightSpace
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
402 " And now color's brother:
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
403 syn region muttrcUnColorPatterns contained skipwhite start=+\s*'+ end=+'+ skip=+\\'+ contains=muttrcPattern nextgroup=muttrcUnColorPatterns,muttrcUnColorPatNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
404 syn region muttrcUnColorPatterns contained skipwhite start=+\s*"+ end=+"+ skip=+\\"+ contains=muttrcPattern nextgroup=muttrcUnColorPatterns,muttrcUnColorPatNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
405 syn match muttrcUnColorPatterns contained skipwhite /\s*[^'"\s]\S\*/ contains=muttrcPattern nextgroup=muttrcUnColorPatterns,muttrcUnColorPatNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
406 syn match muttrcUnColorPatNL contained skipwhite skipnl /\s*\\$/ nextgroup=muttrcUnColorPatterns,muttrcUnColorPatNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
407 syn match muttrcUnColorAll contained skipwhite /[*]/
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
408 syn match muttrcUnColorAPNL contained skipwhite skipnl /\s*\\$/ nextgroup=muttrcUnColorPatterns,muttrcUnColorAll,muttrcUnColorAPNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
409 syn match muttrcUnColorIndex contained skipwhite /\s*index\s\+/ nextgroup=muttrcUnColorPatterns,muttrcUnColorAll,muttrcUnColorAPNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
410 syn match muttrcUnColorIndexNL contained skipwhite skipnl /\s*\\$/ nextgroup=muttrcUnColorIndex,muttrcUnColorIndexNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
411 syn match muttrcUnColorKeyword contained skipwhite /^\s*uncolor\s\+/ nextgroup=muttrcUnColorIndex,muttrcUnColorIndexNL
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
412 syn region muttrcUnColorLine keepend start=+^\s*uncolor\s+ skip=+\\$+ end=+$+ contains=muttrcUnColorKeyword,muttrcComment,muttrcUnHighlightSpace
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
413
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
414 " Mono are almost like color (ojects inherited from color)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
415 syn keyword muttrcMonoAttrib contained bold none normal reverse standout underline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
416 syn keyword muttrcMono contained mono skipwhite nextgroup=muttrcColorField
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
417 syn match muttrcMonoLine "^\s*mono\s\+\S\+" skipwhite nextgroup=muttrcMonoAttrib contains=muttrcMono
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
418
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
419 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
420 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
421 " 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
422 if version >= 508 || !exists("did_muttrc_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
423 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
424 let did_muttrc_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
425 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
426 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
427 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
428 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
429
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
430 HiLink muttrcComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
431 HiLink muttrcEscape SpecialChar
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
432 HiLink muttrcRXChars SpecialChar
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
433 HiLink muttrcString String
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
434 HiLink muttrcRXString String
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
435 HiLink muttrcSpecial Special
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
436 HiLink muttrcGroupFlag Type
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
437 HiLink muttrcGroupDef Macro
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
438 HiLink muttrcAddrDef muttrcGroupFlag
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
439 HiLink muttrcRXDef muttrcGroupFlag
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
440 HiLink muttrcRXPat String
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
441 HiLink muttrcAliasGroupName Macro
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
442 HiLink muttrcAliasAbbr Identifier
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
443 HiLink muttrcUnAliasAbbr Identifier
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
444 HiLink muttrcAliasEncEmail Identifier
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
445 HiLink muttrcAliasParens Type
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
446 HiLink muttrcNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
447 HiLink muttrcQuadopt Boolean
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
448 HiLink muttrcEmail Special
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
449 HiLink muttrcVariable Special
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
450 HiLink muttrcHeader Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
451 HiLink muttrcKeySpecial SpecialChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
452 HiLink muttrcKey Type
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
453 HiLink muttrcKeyName SpecialChar
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
454 HiLink muttrcVarBool Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
455 HiLink muttrcVarQuad Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
456 HiLink muttrcVarNum Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
457 HiLink muttrcVarStr Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
458 HiLink muttrcMenu Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
459 HiLink muttrcCommand Keyword
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
460 HiLink muttrcSet Keyword
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
461 HiLink muttrcUnset muttrcCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
462 HiLink muttrcReset muttrcCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
463 HiLink muttrcToggle muttrcCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
464 HiLink muttrcBind muttrcCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
465 HiLink muttrcMacro muttrcCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
466 HiLink muttrcAlias muttrcCommand
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
467 HiLink muttrcUnAlias muttrcCommand
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
468 HiLink muttrcAction Macro
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
469 HiLink muttrcBadAction Error
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
470 HiLink muttrcBindFunction Error
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
471 HiLink muttrcBindMenuList Error
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
472 HiLink muttrcFunction Macro
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
473 HiLink muttrcGroupKeyword muttrcCommand
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
474 HiLink muttrcGroupLine Error
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
475 HiLink muttrcSubscribeKeyword muttrcCommand
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
476 HiLink muttrcSubscribeLine Error
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
477 HiLink muttrcListsKeyword muttrcCommand
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
478 HiLink muttrcListsLine Error
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
479 HiLink muttrcAlternateKeyword muttrcCommand
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
480 HiLink muttrcAlternatesLine Error
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
481 HiLink muttrcAttachmentsLine muttrcCommand
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
482 HiLink muttrcAttachmentsFlag Type
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
483 HiLink muttrcAttachmentsMimeType String
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
484 HiLink muttrcColorLine Error
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
485 HiLink muttrcColorContext Error
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
486 HiLink muttrcColorContextI Identifier
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
487 HiLink muttrcColorKeyword muttrcCommand
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
488 HiLink muttrcColorKeywordI muttrcColorKeyword
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
489 HiLink muttrcColorField Identifier
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
490 HiLink muttrcColor String
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
491 HiLink muttrcColorFG Error
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
492 HiLink muttrcColorFGI Error
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
493 HiLink muttrcColorBG Error
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
494 HiLink muttrcColorBGI Error
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
495 HiLink muttrcMonoAttrib muttrcColor
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
496 HiLink muttrcMono muttrcCommand
842
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
497 HiLink muttrcSimplePat Identifier
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
498 HiLink muttrcSimplePatGroup Macro
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
499 HiLink muttrcSimplePatMetas Special
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
500 HiLink muttrcPattern Type
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
501 HiLink muttrcPatternInner Error
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
502 HiLink muttrcUnColorLine Error
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
503 HiLink muttrcUnColorKeyword muttrcCommand
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
504 HiLink muttrcUnColorIndex Identifier
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
505 HiLink muttrcShellString muttrcEscape
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
506 HiLink muttrcRXHooks muttrcCommand
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
507 HiLink muttrcRXHookNot Type
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
508 HiLink muttrcPatHooks muttrcCommand
a209672376fd updated for version 7.0f
vimboss
parents: 835
diff changeset
509 HiLink muttrcPatHookNot Type
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
510
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
511 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
512 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
513
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
514 let b:current_syntax = "muttrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
515
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
516 "EOF vim: ts=8 noet tw=100 sw=8 sts=0