Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | " Vim syntax file |
| 2 | " Language: Mutt setup files |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 3 | " Original: Preben 'Peppe' Guldberg <peppe-vim@wielders.org> |
| 4 | " Maintainer: Kyle Wheeler <kyle-muttrc.vim@memoryhole.net> |
Bram Moolenaar | e4a3bcf | 2016-08-26 19:52:37 +0200 | [diff] [blame] | 5 | " Last Change: 18 August 2016 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6 | |
Bram Moolenaar | e4a3bcf | 2016-08-26 19:52:37 +0200 | [diff] [blame] | 7 | " This file covers mutt version 1.7.0 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8 | |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 9 | " quit when a syntax file was already loaded |
| 10 | if exists("b:current_syntax") |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11 | finish |
| 12 | endif |
| 13 | |
Bram Moolenaar | b8ff1fb | 2012-02-04 21:59:01 +0100 | [diff] [blame] | 14 | let s:cpo_save = &cpo |
| 15 | set cpo&vim |
| 16 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17 | " Set the keyword characters |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 18 | setlocal isk=@,48-57,_,- |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 19 | |
Bram Moolenaar | b8ff1fb | 2012-02-04 21:59:01 +0100 | [diff] [blame] | 20 | " handling optional variables |
| 21 | if !exists("use_mutt_sidebar") |
| 22 | let use_mutt_sidebar=0 |
| 23 | endif |
| 24 | |
Bram Moolenaar | 9964e46 | 2007-05-05 17:54:07 +0000 | [diff] [blame] | 25 | syn match muttrcComment "^# .*$" contains=@Spell |
| 26 | syn match muttrcComment "^#[^ ].*$" |
| 27 | syn match muttrcComment "^#$" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 28 | syn match muttrcComment "[^\\]#.*$"lc=1 |
| 29 | |
| 30 | " Escape sequences (back-tick and pipe goes here too) |
Bram Moolenaar | 9964e46 | 2007-05-05 17:54:07 +0000 | [diff] [blame] | 31 | syn match muttrcEscape +\\[#tnr"'Cc ]+ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 32 | syn match muttrcEscape +[`|]+ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 33 | syn match muttrcEscape +\\$+ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 34 | |
| 35 | " The variables takes the following arguments |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 36 | "syn match muttrcString contained "=\s*[^ #"'`]\+"lc=1 contains=muttrcEscape |
| 37 | syn region muttrcString contained keepend start=+"+ms=e skip=+\\"+ end=+"+ contains=muttrcEscape,muttrcCommand,muttrcAction,muttrcShellString |
| 38 | syn region muttrcString contained keepend start=+'+ms=e skip=+\\'+ end=+'+ contains=muttrcEscape,muttrcCommand,muttrcAction |
| 39 | syn match muttrcStringNL contained skipwhite skipnl "\s*\\$" nextgroup=muttrcString,muttrcStringNL |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 40 | |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 41 | syn region muttrcShellString matchgroup=muttrcEscape keepend start=+`+ skip=+\\`+ end=+`+ contains=muttrcVarStr,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcCommand |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 42 | |
| 43 | syn match muttrcRXChars contained /[^\\][][.*?+]\+/hs=s+1 |
| 44 | syn match muttrcRXChars contained /[][|()][.*?+]*/ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 45 | syn match muttrcRXChars contained /['"]^/ms=s+1 |
| 46 | syn match muttrcRXChars contained /$['"]/me=e-1 |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 47 | syn match muttrcRXChars contained /\\/ |
Bram Moolenaar | 9964e46 | 2007-05-05 17:54:07 +0000 | [diff] [blame] | 48 | " Why does muttrcRXString2 work with one \ when muttrcRXString requires two? |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 49 | syn region muttrcRXString contained skipwhite start=+'+ skip=+\\'+ end=+'+ contains=muttrcRXChars |
| 50 | syn region muttrcRXString contained skipwhite start=+"+ skip=+\\"+ end=+"+ contains=muttrcRXChars |
| 51 | syn region muttrcRXString contained skipwhite start=+[^ "'^]+ skip=+\\\s+ end=+\s+re=e-1 contains=muttrcRXChars |
| 52 | " For some reason, skip refuses to match backslashes here... |
| 53 | syn region muttrcRXString contained matchgroup=muttrcRXChars skipwhite start=+\^+ end=+[^\\]\s+re=e-1 contains=muttrcRXChars |
| 54 | syn region muttrcRXString contained matchgroup=muttrcRXChars skipwhite start=+\^+ end=+$\s+ contains=muttrcRXChars |
| 55 | syn region muttrcRXString2 contained skipwhite start=+'+ skip=+\'+ end=+'+ contains=muttrcRXChars |
| 56 | syn region muttrcRXString2 contained skipwhite start=+"+ skip=+\"+ end=+"+ contains=muttrcRXChars |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 57 | |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 58 | " these must be kept synchronized with muttrcRXString, but are intended for |
| 59 | " muttrcRXHooks |
| 60 | syn region muttrcRXHookString contained keepend skipwhite start=+'+ skip=+\\'+ end=+'+ contains=muttrcRXString nextgroup=muttrcString,muttrcStringNL |
| 61 | syn region muttrcRXHookString contained keepend skipwhite start=+"+ skip=+\\"+ end=+"+ contains=muttrcRXString nextgroup=muttrcString,muttrcStringNL |
| 62 | syn region muttrcRXHookString contained keepend skipwhite start=+[^ "'^]+ skip=+\\\s+ end=+\s+re=e-1 contains=muttrcRXString nextgroup=muttrcString,muttrcStringNL |
| 63 | syn region muttrcRXHookString contained keepend skipwhite start=+\^+ end=+[^\\]\s+re=e-1 contains=muttrcRXString nextgroup=muttrcString,muttrcStringNL |
| 64 | syn region muttrcRXHookString contained keepend matchgroup=muttrcRXChars skipwhite start=+\^+ end=+$\s+ contains=muttrcRXString nextgroup=muttrcString,muttrcStringNL |
| 65 | syn match muttrcRXHookStringNL contained skipwhite skipnl "\s*\\$" nextgroup=muttrcRXHookString,muttrcRXHookStringNL |
| 66 | |
| 67 | " these are exclusively for args lists (e.g. -rx pat pat pat ...) |
| 68 | syn region muttrcRXPat contained keepend skipwhite start=+'+ skip=+\\'+ end=+'\s*+ contains=muttrcRXString nextgroup=muttrcRXPat |
| 69 | syn region muttrcRXPat contained keepend skipwhite start=+"+ skip=+\\"+ end=+"\s*+ contains=muttrcRXString nextgroup=muttrcRXPat |
| 70 | syn match muttrcRXPat contained /[^-'"#!]\S\+/ skipwhite contains=muttrcRXChars nextgroup=muttrcRXPat |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 71 | syn match muttrcRXDef contained "-rx\s\+" skipwhite nextgroup=muttrcRXPat |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 72 | |
| 73 | syn match muttrcSpecial +\(['"]\)!\1+ |
| 74 | |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 75 | syn match muttrcSetStrAssignment contained skipwhite /=\s*\%(\\\?\$\)\?[0-9A-Za-z_-]\+/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr contains=muttrcVariable,muttrcEscapedVariable |
| 76 | syn region muttrcSetStrAssignment contained skipwhite keepend start=+=\s*"+hs=s+1 end=+"+ skip=+\\"+ nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr contains=muttrcString |
| 77 | syn region muttrcSetStrAssignment contained skipwhite keepend start=+=\s*'+hs=s+1 end=+'+ skip=+\\'+ nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr contains=muttrcString |
| 78 | syn match muttrcSetBoolAssignment contained skipwhite /=\s*\\\?\$\w\+/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr contains=muttrcVariable,muttrcEscapedVariable |
| 79 | syn match muttrcSetBoolAssignment contained skipwhite /=\s*\%(yes\|no\)/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 80 | syn match muttrcSetBoolAssignment contained skipwhite /=\s*"\%(yes\|no\)"/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 81 | syn match muttrcSetBoolAssignment contained skipwhite /=\s*'\%(yes\|no\)'/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 82 | syn match muttrcSetQuadAssignment contained skipwhite /=\s*\\\?\$\w\+/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr contains=muttrcVariable,muttrcEscapedVariable |
| 83 | syn match muttrcSetQuadAssignment contained skipwhite /=\s*\%(ask-\)\?\%(yes\|no\)/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 84 | syn match muttrcSetQuadAssignment contained skipwhite /=\s*"\%(ask-\)\?\%(yes\|no\)"/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 85 | syn match muttrcSetQuadAssignment contained skipwhite /=\s*'\%(ask-\)\?\%(yes\|no\)'/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 86 | syn match muttrcSetNumAssignment contained skipwhite /=\s*\\\?\$\w\+/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr contains=muttrcVariable,muttrcEscapedVariable |
| 87 | syn match muttrcSetNumAssignment contained skipwhite /=\s*\d\+/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 88 | syn match muttrcSetNumAssignment contained skipwhite /=\s*"\d\+"/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 89 | syn match muttrcSetNumAssignment contained skipwhite /=\s*'\d\+'/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 90 | |
| 91 | " Now catch some email addresses and headers (purified version from mail.vim) |
| 92 | syn match muttrcEmail "[a-zA-Z0-9._-]\+@[a-zA-Z0-9./-]\+" |
Bram Moolenaar | e4a3bcf | 2016-08-26 19:52:37 +0200 | [diff] [blame] | 93 | syn match muttrcHeader "\<\c\%(From\|To\|C[Cc]\|B[Cc][Cc]\|Reply-To\|Subject\|Return-Path\|Received\|Date\|Replied\|Attach\)\>:\=" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 94 | |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 95 | syn match muttrcKeySpecial contained +\%(\\[Cc'"]\|\^\|\\[01]\d\{2}\)+ |
| 96 | syn match muttrcKey contained "\S\+" contains=muttrcKeySpecial,muttrcKeyName |
| 97 | syn region muttrcKey contained start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=muttrcKeySpecial,muttrcKeyName |
| 98 | syn region muttrcKey contained start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=muttrcKeySpecial,muttrcKeyName |
| 99 | syn match muttrcKeyName contained "\<f\%(\d\|10\)\>" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 100 | syn match muttrcKeyName contained "\\[trne]" |
Bram Moolenaar | b8ff1fb | 2012-02-04 21:59:01 +0100 | [diff] [blame] | 101 | syn match muttrcKeyName contained "\c<\%(BackSpace\|BackTab\|Delete\|Down\|End\|Enter\|Esc\|Home\|Insert\|Left\|PageDown\|PageUp\|Return\|Right\|Space\|Tab\|Up\)>" |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 102 | syn match muttrcKeyName contained "<F[0-9]\+>" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 103 | |
Bram Moolenaar | e4a3bcf | 2016-08-26 19:52:37 +0200 | [diff] [blame] | 104 | syn keyword muttrcVarBool skipwhite contained |
| 105 | \ allow_8bit allow_ansi arrow_cursor ascii_chars askbcc askcc attach_split |
| 106 | \ auto_tag autoedit beep beep_new bounce_delivered braille_friendly |
| 107 | \ check_mbox_size check_new collapse_unread confirmappend confirmcreate |
| 108 | \ crypt_autoencrypt crypt_autopgp crypt_autosign crypt_autosmime |
| 109 | \ crypt_confirmhook crypt_opportunistic_encrypt crypt_replyencrypt |
| 110 | \ crypt_replysign crypt_replysignencrypted crypt_timestamp crypt_use_gpgme |
| 111 | \ crypt_use_pka delete_untag digest_collapse duplicate_threads edit_hdrs |
| 112 | \ edit_headers encode_from envelope_from fast_reply fcc_clear followup_to |
| 113 | \ force_name forw_decode forw_decrypt forw_quote forward_decode forward_decrypt |
| 114 | \ forward_quote hdrs header help hidden_host hide_limited hide_missing |
| 115 | \ hide_thread_subject hide_top_limited hide_top_missing honor_disposition |
| 116 | \ idn_decode idn_encode ignore_linear_white_space ignore_list_reply_to |
| 117 | \ imap_check_subscribed imap_list_subscribed imap_passive imap_peek |
| 118 | \ imap_servernoise implicit_autoview include_onlyfirst keep_flagged |
| 119 | \ mail_check_recent mail_check_stats mailcap_sanitize maildir_check_cur |
| 120 | \ maildir_header_cache_verify maildir_trash mark_old markers menu_move_off |
| 121 | \ menu_scroll message_cache_clean meta_key metoo mh_purge mime_forward_decode |
| 122 | \ narrow_tree pager_stop pgp_auto_decode pgp_auto_traditional pgp_autoencrypt |
| 123 | \ pgp_autoinline pgp_autosign pgp_check_exit pgp_create_traditional |
| 124 | \ pgp_ignore_subkeys pgp_long_ids pgp_replyencrypt pgp_replyinline pgp_replysign |
| 125 | \ pgp_replysignencrypted pgp_retainable_sigs pgp_show_unusable pgp_strict_enc |
| 126 | \ pgp_use_gpg_agent pipe_decode pipe_split pop_auth_try_all pop_last |
| 127 | \ postpone_encrypt postpone_encrypt_as print_decode print_split prompt_after |
| 128 | \ read_only reflow_space_quotes reflow_text reflow_wrap reply_self resolve |
| 129 | \ resume_draft_files resume_edited_draft_files reverse_alias reverse_name |
| 130 | \ reverse_realname rfc2047_parameters save_address save_empty save_name score |
| 131 | \ sidebar_folder_indent sidebar_new_mail_only sidebar_next_new_wrap |
| 132 | \ sidebar_short_path sidebar_sort sidebar_visible sig_dashes sig_on_top |
| 133 | \ smart_wrap smime_ask_cert_label smime_decrypt_use_default_key smime_is_default |
| 134 | \ sort_re ssl_force_tls ssl_use_sslv2 ssl_use_sslv3 ssl_use_tlsv1 |
| 135 | \ ssl_usesystemcerts ssl_verify_dates ssl_verify_host status_on_top strict_mime |
| 136 | \ strict_threads suspend text_flowed thorough_search thread_received tilde |
| 137 | \ ts_enabled uncollapse_jump use_8bitmime use_domain use_envelope_from use_from |
| 138 | \ use_idn use_ipv6 user_agent wait_key weed wrap_search write_bcc |
| 139 | \ nextgroup=muttrcSetBoolAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 140 | |
Bram Moolenaar | e4a3bcf | 2016-08-26 19:52:37 +0200 | [diff] [blame] | 141 | syn keyword muttrcVarBool skipwhite contained |
| 142 | \ noallow_8bit noallow_ansi noarrow_cursor noascii_chars noaskbcc noaskcc noattach_split |
| 143 | \ noauto_tag noautoedit nobeep nobeep_new nobounce_delivered nobraille_friendly |
| 144 | \ nocheck_mbox_size nocheck_new nocollapse_unread noconfirmappend noconfirmcreate |
| 145 | \ nocrypt_autoencrypt nocrypt_autopgp nocrypt_autosign nocrypt_autosmime |
| 146 | \ nocrypt_confirmhook nocrypt_opportunistic_encrypt nocrypt_replyencrypt |
| 147 | \ nocrypt_replysign nocrypt_replysignencrypted nocrypt_timestamp nocrypt_use_gpgme |
| 148 | \ nocrypt_use_pka nodelete_untag nodigest_collapse noduplicate_threads noedit_hdrs |
| 149 | \ noedit_headers noencode_from noenvelope_from nofast_reply nofcc_clear nofollowup_to |
| 150 | \ noforce_name noforw_decode noforw_decrypt noforw_quote noforward_decode noforward_decrypt |
| 151 | \ noforward_quote nohdrs noheader nohelp nohidden_host nohide_limited nohide_missing |
| 152 | \ nohide_thread_subject nohide_top_limited nohide_top_missing nohonor_disposition |
| 153 | \ noidn_decode noidn_encode noignore_linear_white_space noignore_list_reply_to |
| 154 | \ noimap_check_subscribed noimap_list_subscribed noimap_passive noimap_peek |
| 155 | \ noimap_servernoise noimplicit_autoview noinclude_onlyfirst nokeep_flagged |
| 156 | \ nomail_check_recent nomail_check_stats nomailcap_sanitize nomaildir_check_cur |
| 157 | \ nomaildir_header_cache_verify nomaildir_trash nomark_old nomarkers nomenu_move_off |
| 158 | \ nomenu_scroll nomessage_cache_clean nometa_key nometoo nomh_purge nomime_forward_decode |
| 159 | \ nonarrow_tree nopager_stop nopgp_auto_decode nopgp_auto_traditional nopgp_autoencrypt |
| 160 | \ nopgp_autoinline nopgp_autosign nopgp_check_exit nopgp_create_traditional |
| 161 | \ nopgp_ignore_subkeys nopgp_long_ids nopgp_replyencrypt nopgp_replyinline nopgp_replysign |
| 162 | \ nopgp_replysignencrypted nopgp_retainable_sigs nopgp_show_unusable nopgp_strict_enc |
| 163 | \ nopgp_use_gpg_agent nopipe_decode nopipe_split nopop_auth_try_all nopop_last |
| 164 | \ nopostpone_encrypt nopostpone_encrypt_as noprint_decode noprint_split noprompt_after |
| 165 | \ noread_only noreflow_space_quotes noreflow_text noreflow_wrap noreply_self noresolve |
| 166 | \ noresume_draft_files noresume_edited_draft_files noreverse_alias noreverse_name |
| 167 | \ noreverse_realname norfc2047_parameters nosave_address nosave_empty nosave_name noscore |
| 168 | \ nosidebar_folder_indent nosidebar_new_mail_only nosidebar_next_new_wrap |
| 169 | \ nosidebar_short_path nosidebar_sort nosidebar_visible nosig_dashes nosig_on_top |
| 170 | \ nosmart_wrap nosmime_ask_cert_label nosmime_decrypt_use_default_key nosmime_is_default |
| 171 | \ nosort_re nossl_force_tls nossl_use_sslv2 nossl_use_sslv3 nossl_use_tlsv1 |
| 172 | \ nossl_usesystemcerts nossl_verify_dates nossl_verify_host nostatus_on_top nostrict_mime |
| 173 | \ nostrict_threads nosuspend notext_flowed nothorough_search nothread_received notilde |
| 174 | \ nots_enabled nouncollapse_jump nouse_8bitmime nouse_domain nouse_envelope_from nouse_from |
| 175 | \ nouse_idn nouse_ipv6 nouser_agent nowait_key noweed nowrap_search nowrite_bcc |
| 176 | \ nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 177 | |
Bram Moolenaar | e4a3bcf | 2016-08-26 19:52:37 +0200 | [diff] [blame] | 178 | syn keyword muttrcVarBool skipwhite contained |
| 179 | \ invallow_8bit invallow_ansi invarrow_cursor invascii_chars invaskbcc invaskcc invattach_split |
| 180 | \ invauto_tag invautoedit invbeep invbeep_new invbounce_delivered invbraille_friendly |
| 181 | \ invcheck_mbox_size invcheck_new invcollapse_unread invconfirmappend invconfirmcreate |
| 182 | \ invcrypt_autoencrypt invcrypt_autopgp invcrypt_autosign invcrypt_autosmime |
| 183 | \ invcrypt_confirmhook invcrypt_opportunistic_encrypt invcrypt_replyencrypt |
| 184 | \ invcrypt_replysign invcrypt_replysignencrypted invcrypt_timestamp invcrypt_use_gpgme |
| 185 | \ invcrypt_use_pka invdelete_untag invdigest_collapse invduplicate_threads invedit_hdrs |
| 186 | \ invedit_headers invencode_from invenvelope_from invfast_reply invfcc_clear invfollowup_to |
| 187 | \ invforce_name invforw_decode invforw_decrypt invforw_quote invforward_decode invforward_decrypt |
| 188 | \ invforward_quote invhdrs invheader invhelp invhidden_host invhide_limited invhide_missing |
| 189 | \ invhide_thread_subject invhide_top_limited invhide_top_missing invhonor_disposition |
| 190 | \ invidn_decode invidn_encode invignore_linear_white_space invignore_list_reply_to |
| 191 | \ invimap_check_subscribed invimap_list_subscribed invimap_passive invimap_peek |
| 192 | \ invimap_servernoise invimplicit_autoview invinclude_onlyfirst invkeep_flagged |
| 193 | \ invmail_check_recent invmail_check_stats invmailcap_sanitize invmaildir_check_cur |
| 194 | \ invmaildir_header_cache_verify invmaildir_trash invmark_old invmarkers invmenu_move_off |
| 195 | \ invmenu_scroll invmessage_cache_clean invmeta_key invmetoo invmh_purge invmime_forward_decode |
| 196 | \ invnarrow_tree invpager_stop invpgp_auto_decode invpgp_auto_traditional invpgp_autoencrypt |
| 197 | \ invpgp_autoinline invpgp_autosign invpgp_check_exit invpgp_create_traditional |
| 198 | \ invpgp_ignore_subkeys invpgp_long_ids invpgp_replyencrypt invpgp_replyinline invpgp_replysign |
| 199 | \ invpgp_replysignencrypted invpgp_retainable_sigs invpgp_show_unusable invpgp_strict_enc |
| 200 | \ invpgp_use_gpg_agent invpipe_decode invpipe_split invpop_auth_try_all invpop_last |
| 201 | \ invpostpone_encrypt invpostpone_encrypt_as invprint_decode invprint_split invprompt_after |
| 202 | \ invread_only invreflow_space_quotes invreflow_text invreflow_wrap invreply_self invresolve |
| 203 | \ invresume_draft_files invresume_edited_draft_files invreverse_alias invreverse_name |
| 204 | \ invreverse_realname invrfc2047_parameters invsave_address invsave_empty invsave_name invscore |
| 205 | \ invsidebar_folder_indent invsidebar_new_mail_only invsidebar_next_new_wrap |
| 206 | \ invsidebar_short_path invsidebar_sort invsidebar_visible invsig_dashes invsig_on_top |
| 207 | \ invsmart_wrap invsmime_ask_cert_label invsmime_decrypt_use_default_key invsmime_is_default |
| 208 | \ invsort_re invssl_force_tls invssl_use_sslv2 invssl_use_sslv3 invssl_use_tlsv1 |
| 209 | \ invssl_usesystemcerts invssl_verify_dates invssl_verify_host invstatus_on_top invstrict_mime |
| 210 | \ invstrict_threads invsuspend invtext_flowed invthorough_search invthread_received invtilde |
| 211 | \ invts_enabled invuncollapse_jump invuse_8bitmime invuse_domain invuse_envelope_from invuse_from |
| 212 | \ invuse_idn invuse_ipv6 invuser_agent invwait_key invweed invwrap_search invwrite_bcc |
| 213 | \ nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 214 | |
Bram Moolenaar | e4a3bcf | 2016-08-26 19:52:37 +0200 | [diff] [blame] | 215 | syn keyword muttrcVarQuad skipwhite contained |
| 216 | \ abort_nosubject abort_unmodified bounce copy crypt_verify_sig delete |
| 217 | \ fcc_attach forward_edit honor_followup_to include mime_forward |
| 218 | \ mime_forward_rest mime_fwd move pgp_mime_auto pgp_verify_sig pop_delete |
| 219 | \ pop_reconnect postpone print quit recall reply_to ssl_starttls |
| 220 | \ nextgroup=muttrcSetQuadAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 221 | |
Bram Moolenaar | e4a3bcf | 2016-08-26 19:52:37 +0200 | [diff] [blame] | 222 | syn keyword muttrcVarQuad skipwhite contained |
| 223 | \ noabort_nosubject noabort_unmodified nobounce nocopy nocrypt_verify_sig nodelete |
| 224 | \ nofcc_attach noforward_edit nohonor_followup_to noinclude nomime_forward |
| 225 | \ nomime_forward_rest nomime_fwd nomove nopgp_mime_auto nopgp_verify_sig nopop_delete |
| 226 | \ nopop_reconnect nopostpone noprint noquit norecall noreply_to nossl_starttls |
| 227 | \ nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 228 | |
Bram Moolenaar | e4a3bcf | 2016-08-26 19:52:37 +0200 | [diff] [blame] | 229 | syn keyword muttrcVarQuad skipwhite contained |
| 230 | \ invabort_nosubject invabort_unmodified invbounce invcopy invcrypt_verify_sig invdelete |
| 231 | \ invfcc_attach invforward_edit invhonor_followup_to invinclude invmime_forward |
| 232 | \ invmime_forward_rest invmime_fwd invmove invpgp_mime_auto invpgp_verify_sig invpop_delete |
| 233 | \ invpop_reconnect invpostpone invprint invquit invrecall invreply_to invssl_starttls |
| 234 | \ nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 235 | |
Bram Moolenaar | e4a3bcf | 2016-08-26 19:52:37 +0200 | [diff] [blame] | 236 | syn keyword muttrcVarNum skipwhite contained |
| 237 | \ connect_timeout history imap_keepalive imap_pipeline_depth mail_check |
| 238 | \ mail_check_stats_interval menu_context net_inc pager_context pager_index_lines |
| 239 | \ pgp_timeout pop_checkinterval read_inc save_history score_threshold_delete |
| 240 | \ score_threshold_flag score_threshold_read search_context sendmail_wait |
| 241 | \ sidebar_width sleep_time smime_timeout ssl_min_dh_prime_bits time_inc timeout |
| 242 | \ wrap wrap_headers wrapmargin write_inc |
| 243 | \ nextgroup=muttrcSetNumAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 244 | |
| 245 | syn match muttrcFormatErrors contained /%./ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 246 | |
| 247 | syn match muttrcStrftimeEscapes contained /%[AaBbCcDdeFGgHhIjklMmnpRrSsTtUuVvWwXxYyZz+%]/ |
| 248 | syn match muttrcStrftimeEscapes contained /%E[cCxXyY]/ |
| 249 | syn match muttrcStrftimeEscapes contained /%O[BdeHImMSuUVwWy]/ |
| 250 | |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 251 | syn region muttrcIndexFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcIndexFormatEscapes,muttrcIndexFormatConditionals,muttrcFormatErrors,muttrcTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 252 | syn region muttrcIndexFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcIndexFormatEscapes,muttrcIndexFormatConditionals,muttrcFormatErrors,muttrcTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 253 | syn region muttrcQueryFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcQueryFormatEscapes,muttrcQueryFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 254 | syn region muttrcAliasFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcAliasFormatEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 255 | syn region muttrcAliasFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcAliasFormatEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 256 | syn region muttrcAttachFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcAttachFormatEscapes,muttrcAttachFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 257 | syn region muttrcAttachFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcAttachFormatEscapes,muttrcAttachFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 258 | syn region muttrcComposeFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcComposeFormatEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 259 | syn region muttrcComposeFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcComposeFormatEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 260 | syn region muttrcFolderFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcFolderFormatEscapes,muttrcFolderFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 261 | syn region muttrcFolderFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcFolderFormatEscapes,muttrcFolderFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 262 | syn region muttrcMixFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcMixFormatEscapes,muttrcMixFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 263 | syn region muttrcMixFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcMixFormatEscapes,muttrcMixFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 264 | syn region muttrcPGPFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcPGPFormatEscapes,muttrcPGPFormatConditionals,muttrcFormatErrors,muttrcPGPTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 265 | syn region muttrcPGPFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcPGPFormatEscapes,muttrcPGPFormatConditionals,muttrcFormatErrors,muttrcPGPTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 266 | syn region muttrcPGPCmdFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcPGPCmdFormatEscapes,muttrcPGPCmdFormatConditionals,muttrcVariable,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 267 | syn region muttrcPGPCmdFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcPGPCmdFormatEscapes,muttrcPGPCmdFormatConditionals,muttrcVariable,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 268 | syn region muttrcStatusFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcStatusFormatEscapes,muttrcStatusFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 269 | syn region muttrcStatusFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcStatusFormatEscapes,muttrcStatusFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 270 | syn region muttrcPGPGetKeysFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcPGPGetKeysFormatEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 271 | syn region muttrcPGPGetKeysFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcPGPGetKeysFormatEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 272 | syn region muttrcSmimeFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcSmimeFormatEscapes,muttrcSmimeFormatConditionals,muttrcVariable,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 273 | syn region muttrcSmimeFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcSmimeFormatEscapes,muttrcSmimeFormatConditionals,muttrcVariable,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 274 | syn region muttrcStrftimeFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcStrftimeEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 275 | syn region muttrcStrftimeFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcStrftimeEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 276 | |
| 277 | " The following info was pulled from hdr_format_str in hdrline.c |
| 278 | syn match muttrcIndexFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[aAbBcCdDeEfFHilLmMnNOPsStTuvXyYZ%]/ |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 279 | syn match muttrcIndexFormatEscapes contained /%[>|*]./ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 280 | syn match muttrcIndexFormatConditionals contained /%?[EFHlLMNOXyY]?/ nextgroup=muttrcFormatConditionals2 |
| 281 | " The following info was pulled from alias_format_str in addrbook.c |
| 282 | syn match muttrcAliasFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[afnrt%]/ |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 283 | " The following info was pulled from query_format_str in query.c |
| 284 | syn match muttrcQueryFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[acent%]/ |
| 285 | syn match muttrcQueryFormatConditionals contained /%?[e]?/ nextgroup=muttrcFormatConditionals2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 286 | " The following info was pulled from mutt_attach_fmt in recvattach.c |
| 287 | syn match muttrcAttachFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[CcDdefImMnQstTuX%]/ |
| 288 | syn match muttrcAttachFormatEscapes contained /%[>|*]./ |
| 289 | syn match muttrcAttachFormatConditionals contained /%?[CcdDefInmMQstTuX]?/ nextgroup=muttrcFormatConditionals2 |
| 290 | syn match muttrcFormatConditionals2 contained /[^?]*?/ |
| 291 | " The following info was pulled from compose_format_str in compose.c |
| 292 | syn match muttrcComposeFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[ahlv%]/ |
| 293 | syn match muttrcComposeFormatEscapes contained /%[>|*]./ |
| 294 | " The following info was pulled from folder_format_str in browser.c |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 295 | syn match muttrcFolderFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[CDdfFglNstu%]/ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 296 | syn match muttrcFolderFormatEscapes contained /%[>|*]./ |
| 297 | syn match muttrcFolderFormatConditionals contained /%?[N]?/ |
| 298 | " The following info was pulled from mix_entry_fmt in remailer.c |
| 299 | syn match muttrcMixFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[ncsa%]/ |
| 300 | syn match muttrcMixFormatConditionals contained /%?[ncsa]?/ |
| 301 | " The following info was pulled from crypt_entry_fmt in crypt-gpgme.c |
| 302 | " and pgp_entry_fmt in pgpkey.c (note that crypt_entry_fmt supports |
| 303 | " 'p', but pgp_entry_fmt does not). |
| 304 | syn match muttrcPGPFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[nkualfctp%]/ |
| 305 | syn match muttrcPGPFormatConditionals contained /%?[nkualfct]?/ |
| 306 | " The following info was pulled from _mutt_fmt_pgp_command in |
| 307 | " pgpinvoke.c |
| 308 | syn match muttrcPGPCmdFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[pfsar%]/ |
| 309 | syn match muttrcPGPCmdFormatConditionals contained /%?[pfsar]?/ nextgroup=muttrcFormatConditionals2 |
| 310 | " The following info was pulled from status_format_str in status.c |
| 311 | syn match muttrcStatusFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[bdfFhlLmMnopPrsStuvV%]/ |
| 312 | syn match muttrcStatusFormatEscapes contained /%[>|*]./ |
| 313 | syn match muttrcStatusFormatConditionals contained /%?[bdFlLmMnoptuV]?/ nextgroup=muttrcFormatConditionals2 |
| 314 | " This matches the documentation, but directly contradicts the code |
| 315 | " (according to the code, this should be identical to the |
| 316 | " muttrcPGPCmdFormatEscapes |
| 317 | syn match muttrcPGPGetKeysFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[r%]/ |
| 318 | " The following info was pulled from _mutt_fmt_smime_command in |
| 319 | " smime.c |
| 320 | syn match muttrcSmimeFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[Cciskaf%]/ |
| 321 | syn match muttrcSmimeFormatConditionals contained /%?[Cciskaf]?/ nextgroup=muttrcFormatConditionals2 |
| 322 | |
| 323 | syn region muttrcTimeEscapes contained start=+%{+ end=+}+ contains=muttrcStrftimeEscapes |
| 324 | syn region muttrcTimeEscapes contained start=+%\[+ end=+\]+ contains=muttrcStrftimeEscapes |
| 325 | syn region muttrcTimeEscapes contained start=+%(+ end=+)+ contains=muttrcStrftimeEscapes |
| 326 | syn region muttrcTimeEscapes contained start=+%<+ end=+>+ contains=muttrcStrftimeEscapes |
| 327 | syn region muttrcPGPTimeEscapes contained start=+%\[+ end=+\]+ contains=muttrcStrftimeEscapes |
| 328 | |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 329 | syn keyword muttrcVarStr contained skipwhite attribution index_format message_format pager_format nextgroup=muttrcVarEqualsIdxFmt |
| 330 | syn match muttrcVarEqualsIdxFmt contained skipwhite "=" nextgroup=muttrcIndexFormatStr |
| 331 | syn keyword muttrcVarStr contained skipwhite alias_format nextgroup=muttrcVarEqualsAliasFmt |
| 332 | syn match muttrcVarEqualsAliasFmt contained skipwhite "=" nextgroup=muttrcAliasFormatStr |
| 333 | syn keyword muttrcVarStr contained skipwhite attach_format nextgroup=muttrcVarEqualsAttachFmt |
| 334 | syn match muttrcVarEqualsAttachFmt contained skipwhite "=" nextgroup=muttrcAttachFormatStr |
| 335 | syn keyword muttrcVarStr contained skipwhite compose_format nextgroup=muttrcVarEqualsComposeFmt |
| 336 | syn match muttrcVarEqualsComposeFmt contained skipwhite "=" nextgroup=muttrcComposeFormatStr |
| 337 | syn keyword muttrcVarStr contained skipwhite folder_format nextgroup=muttrcVarEqualsFolderFmt |
| 338 | syn match muttrcVarEqualsFolderFmt contained skipwhite "=" nextgroup=muttrcFolderFormatStr |
| 339 | syn keyword muttrcVarStr contained skipwhite mix_entry_format nextgroup=muttrcVarEqualsMixFmt |
| 340 | syn match muttrcVarEqualsMixFmt contained skipwhite "=" nextgroup=muttrcMixFormatStr |
| 341 | syn keyword muttrcVarStr contained skipwhite pgp_entry_format nextgroup=muttrcVarEqualsPGPFmt |
| 342 | syn match muttrcVarEqualsPGPFmt contained skipwhite "=" nextgroup=muttrcPGPFormatStr |
| 343 | syn keyword muttrcVarStr contained skipwhite query_format nextgroup=muttrcVarEqualsQueryFmt |
| 344 | syn match muttrcVarEqualsQueryFmt contained skipwhite "=" nextgroup=muttrcQueryFormatStr |
| 345 | syn keyword muttrcVarStr contained skipwhite pgp_decode_command pgp_verify_command pgp_decrypt_command pgp_clearsign_command pgp_sign_command pgp_encrypt_sign_command pgp_encrypt_only_command pgp_import_command pgp_export_command pgp_verify_key_command pgp_list_secring_command pgp_list_pubring_command nextgroup=muttrcVarEqualsPGPCmdFmt |
| 346 | syn match muttrcVarEqualsPGPCmdFmt contained skipwhite "=" nextgroup=muttrcPGPCmdFormatStr |
Bram Moolenaar | e4a3bcf | 2016-08-26 19:52:37 +0200 | [diff] [blame] | 347 | syn keyword muttrcVarStr contained skipwhite ts_icon_format ts_status_format status_format nextgroup=muttrcVarEqualsStatusFmt |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 348 | syn match muttrcVarEqualsStatusFmt contained skipwhite "=" nextgroup=muttrcStatusFormatStr |
| 349 | syn keyword muttrcVarStr contained skipwhite pgp_getkeys_command nextgroup=muttrcVarEqualsPGPGetKeysFmt |
| 350 | syn match muttrcVarEqualsPGPGetKeysFmt contained skipwhite "=" nextgroup=muttrcPGPGetKeysFormatStr |
| 351 | syn keyword muttrcVarStr contained skipwhite smime_decrypt_command smime_verify_command smime_verify_opaque_command smime_sign_command smime_sign_opaque_command smime_encrypt_command smime_pk7out_command smime_get_cert_command smime_get_signer_cert_command smime_import_cert_command smime_get_cert_email_command nextgroup=muttrcVarEqualsSmimeFmt |
| 352 | syn match muttrcVarEqualsSmimeFmt contained skipwhite "=" nextgroup=muttrcSmimeFormatStr |
| 353 | syn keyword muttrcVarStr contained skipwhite date_format nextgroup=muttrcVarEqualsStrftimeFmt |
| 354 | syn match muttrcVarEqualsStrftimeFmt contained skipwhite "=" nextgroup=muttrcStrftimeFormatStr |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 355 | |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 356 | syn match muttrcVPrefix contained /[?&]/ nextgroup=muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 357 | |
| 358 | syn match muttrcVarStr contained skipwhite 'my_[a-zA-Z0-9_]\+' nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | e4a3bcf | 2016-08-26 19:52:37 +0200 | [diff] [blame] | 359 | syn keyword muttrcVarStr contained skipwhite |
| 360 | \ alias_file assumed_charset attach_charset attach_sep certificate_file charset |
| 361 | \ config_charset content_type default_hook display_filter dotlock_program |
| 362 | \ dsn_notify dsn_return editor entropy_file envelope_from_address escape folder |
| 363 | \ forw_format forward_format from gecos_mask hdr_format header_cache |
| 364 | \ header_cache_compress header_cache_pagesize history_file hostname |
| 365 | \ imap_authenticators imap_delim_chars imap_headers imap_idle imap_login |
| 366 | \ imap_pass imap_user indent_str indent_string ispell locale mailcap_path mask |
| 367 | \ mbox mbox_type message_cachedir mh_seq_flagged mh_seq_replied mh_seq_unseen |
| 368 | \ mixmaster msg_format pager pgp_decryption_okay pgp_good_sign |
| 369 | \ pgp_mime_signature_description pgp_mime_signature_filename pgp_sign_as |
| 370 | \ pgp_sort_keys pipe_sep pop_authenticators pop_host pop_pass pop_user |
| 371 | \ post_indent_str post_indent_string postpone_encrypt_as postponed preconnect |
| 372 | \ print_cmd print_command query_command quote_regexp realname record |
| 373 | \ reply_regexp send_charset sendmail shell sidebar_delim sidebar_delim_chars |
| 374 | \ sidebar_divider_char sidebar_format sidebar_indent_string sidebar_sort_method |
| 375 | \ signature simple_search smileys smime_ca_location smime_certificates |
| 376 | \ smime_default_key smime_encrypt_with smime_keys smime_sign_as |
| 377 | \ smime_sign_digest_alg smtp_authenticators smtp_pass smtp_url sort sort_alias |
| 378 | \ sort_aux sort_browser spam_separator spoolfile ssl_ca_certificates_file |
| 379 | \ ssl_ciphers ssl_client_cert status_chars tmpdir to_chars trash ts_icon_format |
| 380 | \ ts_status_format tunnel visual |
| 381 | \ nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 382 | |
| 383 | " Present in 1.4.2.1 (pgp_create_traditional was a bool then) |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 384 | syn keyword muttrcVarBool contained skipwhite imap_force_ssl noimap_force_ssl invimap_force_ssl nextgroup=muttrcSetBoolAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 385 | "syn keyword muttrcVarQuad contained pgp_create_traditional nopgp_create_traditional invpgp_create_traditional |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 386 | syn keyword muttrcVarStr contained skipwhite alternates nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 387 | |
| 388 | syn keyword muttrcMenu contained alias attach browser compose editor index pager postpone pgp mix query generic |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 389 | syn match muttrcMenuList "\S\+" contained contains=muttrcMenu |
| 390 | syn match muttrcMenuCommas /,/ contained |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 391 | |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 392 | syn keyword muttrcHooks contained skipwhite account-hook charset-hook iconv-hook message-hook folder-hook mbox-hook save-hook fcc-hook fcc-save-hook send-hook send2-hook reply-hook crypt-hook |
| 393 | |
Bram Moolenaar | e4a3bcf | 2016-08-26 19:52:37 +0200 | [diff] [blame] | 394 | syn keyword muttrcCommand skipwhite |
| 395 | \ alternative_order auto_view exec hdr_order iconv-hook ignore mailboxes |
| 396 | \ mailto_allow mime_lookup my_hdr pgp-hook push score sidebar_whitelist source |
| 397 | \ unalternative_order unalternative_order unauto_view ungroup unhdr_order |
| 398 | \ unignore unmailboxes unmailto_allow unmime_lookup unmono unmy_hdr unscore |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 399 | syn keyword muttrcCommand skipwhite charset-hook nextgroup=muttrcRXString |
| 400 | syn keyword muttrcCommand skipwhite unhook nextgroup=muttrcHooks |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 401 | |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 402 | syn keyword muttrcCommand skipwhite spam nextgroup=muttrcSpamPattern |
| 403 | syn region muttrcSpamPattern contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcPattern nextgroup=muttrcString,muttrcStringNL |
| 404 | syn region muttrcSpamPattern contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcPattern nextgroup=muttrcString,muttrcStringNL |
| 405 | |
| 406 | syn keyword muttrcCommand skipwhite nospam nextgroup=muttrcNoSpamPattern |
| 407 | syn region muttrcNoSpamPattern contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcPattern |
| 408 | syn region muttrcNoSpamPattern contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcPattern |
Bram Moolenaar | 9964e46 | 2007-05-05 17:54:07 +0000 | [diff] [blame] | 409 | |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 410 | syn match muttrcAttachmentsMimeType contained "[*a-z0-9_-]\+/[*a-z0-9._-]\+\s*" skipwhite nextgroup=muttrcAttachmentsMimeType |
| 411 | syn match muttrcAttachmentsFlag contained "[+-]\%([AI]\|inline\|attachment\)\s\+" skipwhite nextgroup=muttrcAttachmentsMimeType |
| 412 | syn match muttrcAttachmentsLine "^\s*\%(un\)\?attachments\s\+" skipwhite nextgroup=muttrcAttachmentsFlag |
| 413 | |
| 414 | syn match muttrcUnHighlightSpace contained "\%(\s\+\|\\$\)" |
| 415 | |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 416 | syn keyword muttrcAsterisk contained * |
| 417 | syn keyword muttrcListsKeyword lists skipwhite nextgroup=muttrcGroupDef,muttrcComment |
| 418 | syn keyword muttrcListsKeyword unlists skipwhite nextgroup=muttrcAsterisk,muttrcComment |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 419 | |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 420 | syn keyword muttrcSubscribeKeyword subscribe nextgroup=muttrcGroupDef,muttrcComment |
| 421 | syn keyword muttrcSubscribeKeyword unsubscribe nextgroup=muttrcAsterisk,muttrcComment |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 422 | |
| 423 | syn keyword muttrcAlternateKeyword contained alternates unalternates |
| 424 | syn region muttrcAlternatesLine keepend start=+^\s*\%(un\)\?alternates\s+ skip=+\\$+ end=+$+ contains=muttrcAlternateKeyword,muttrcGroupDef,muttrcRXPat,muttrcUnHighlightSpace,muttrcComment |
| 425 | |
Bram Moolenaar | b8ff1fb | 2012-02-04 21:59:01 +0100 | [diff] [blame] | 426 | " muttrcVariable includes a prefix because partial strings are considered |
| 427 | " valid. |
| 428 | syn match muttrcVariable contained "\\\@<![a-zA-Z_-]*\$[a-zA-Z_-]\+" contains=muttrcVariableInner |
| 429 | syn match muttrcVariableInner contained "\$[a-zA-Z_-]\+" |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 430 | syn match muttrcEscapedVariable contained "\\\$[a-zA-Z_-]\+" |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 431 | |
| 432 | syn match muttrcBadAction contained "[^<>]\+" contains=muttrcEmail |
Bram Moolenaar | e4a3bcf | 2016-08-26 19:52:37 +0200 | [diff] [blame] | 433 | syn match muttrcFunction contained "\<\%(attach\|bounce\|copy\|delete\|display\|flag\|forward\|parent\|pipe\|postpone\|print\|purge\|recall\|resend\|save\|send\|tag\|undelete\)-message\>" |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 434 | syn match muttrcFunction contained "\<\%(delete\|next\|previous\|read\|tag\|break\|undelete\)-thread\>" |
| 435 | syn match muttrcFunction contained "\<link-threads\>" |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 436 | syn match muttrcFunction contained "\<\%(backward\|capitalize\|downcase\|forward\|kill\|upcase\)-word\>" |
| 437 | syn match muttrcFunction contained "\<\%(delete\|filter\|first\|last\|next\|pipe\|previous\|print\|save\|select\|tag\|undelete\)-entry\>" |
| 438 | syn match muttrcFunction contained "\<attach-\%(file\|key\)\>" |
| 439 | syn match muttrcFunction contained "\<change-\%(dir\|folder\|folder-readonly\)\>" |
| 440 | syn match muttrcFunction contained "\<check-\%(new\|traditional-pgp\)\>" |
| 441 | syn match muttrcFunction contained "\<current-\%(bottom\|middle\|top\)\>" |
| 442 | syn match muttrcFunction contained "\<decode-\%(copy\|save\)\>" |
| 443 | syn match muttrcFunction contained "\<delete-\%(char\|pattern\|subthread\)\>" |
| 444 | syn match muttrcFunction contained "\<display-\%(address\|toggle-weed\)\>" |
| 445 | syn match muttrcFunction contained "\<edit\%(-\%(bcc\|cc\|description\|encoding\|fcc\|file\|from\|headers\|mime\|reply-to\|subject\|to\|type\)\)\?\>" |
| 446 | syn match muttrcFunction contained "\<enter-\%(command\|mask\)\>" |
| 447 | syn match muttrcFunction contained "\<half-\%(up\|down\)\>" |
| 448 | syn match muttrcFunction contained "\<history-\%(up\|down\)\>" |
| 449 | syn match muttrcFunction contained "\<kill-\%(eol\|eow\|line\)\>" |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 450 | syn match muttrcFunction contained "\<next-\%(line\|new\%(-then-unread\)\?\|page\|subthread\|undeleted\|unread\|unread-mailbox\)\>" |
| 451 | syn match muttrcFunction contained "\<previous-\%(line\|new\%(-then-unread\)\?\|page\|subthread\|undeleted\|unread\)\>" |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 452 | syn match muttrcFunction contained "\<search\%(-\%(next\|opposite\|reverse\|toggle\)\)\?\>" |
| 453 | syn match muttrcFunction contained "\<show-\%(limit\|version\)\>" |
| 454 | syn match muttrcFunction contained "\<sort-\%(mailbox\|reverse\)\>" |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 455 | syn match muttrcFunction contained "\<tag-\%(pattern\|\%(sub\)\?thread\|prefix\%(-cond\)\?\)\>" |
| 456 | syn match muttrcFunction contained "\<end-cond\>" |
Bram Moolenaar | e4a3bcf | 2016-08-26 19:52:37 +0200 | [diff] [blame] | 457 | syn match muttrcFunction contained "\<sidebar-\%(next\|next-new\|open\|page-down\|page-up\|prev\|prev-new\|toggle-visible\)\>" |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 458 | syn match muttrcFunction contained "\<toggle-\%(mailboxes\|new\|quoted\|subscribed\|unlink\|write\)\>" |
| 459 | syn match muttrcFunction contained "\<undelete-\%(pattern\|subthread\)\>" |
| 460 | syn match muttrcFunction contained "\<collapse-\%(parts\|thread\|all\)\>" |
| 461 | syn match muttrcFunction contained "\<view-\%(attach\|attachments\|file\|mailcap\|name\|text\)\>" |
Bram Moolenaar | 9964e46 | 2007-05-05 17:54:07 +0000 | [diff] [blame] | 462 | 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\|noop\|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\|what-key\|write-fcc\)\>" |
Bram Moolenaar | e4a3bcf | 2016-08-26 19:52:37 +0200 | [diff] [blame] | 463 | syn keyword muttrcFunction contained imap-logout-all |
Bram Moolenaar | b8ff1fb | 2012-02-04 21:59:01 +0100 | [diff] [blame] | 464 | if use_mutt_sidebar == 1 |
| 465 | syn match muttrcFunction contained "\<sidebar-\%(prev\|next\|open\|scroll-up\|scroll-down\)" |
| 466 | endif |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 467 | syn match muttrcAction contained "<[^>]\{-}>" contains=muttrcBadAction,muttrcFunction,muttrcKeyName |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 468 | |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 469 | syn keyword muttrcCommand set skipwhite nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 470 | syn keyword muttrcCommand unset skipwhite nextgroup=muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 471 | syn keyword muttrcCommand reset skipwhite nextgroup=muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 472 | syn keyword muttrcCommand toggle skipwhite nextgroup=muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 473 | |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 474 | " First, functions that take regular expressions: |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 475 | syn match muttrcRXHookNot contained /!\s*/ skipwhite nextgroup=muttrcRXHookString,muttrcRXHookStringNL |
| 476 | syn match muttrcRXHooks /\<\%(account\|folder\)-hook\>/ skipwhite nextgroup=muttrcRXHookNot,muttrcRXHookString,muttrcRXHookStringNL |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 477 | |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 478 | " Now, functions that take patterns |
| 479 | syn match muttrcPatHookNot contained /!\s*/ skipwhite nextgroup=muttrcPattern |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 480 | syn match muttrcPatHooks /\<\%(mbox\|crypt\)-hook\>/ skipwhite nextgroup=muttrcPatHookNot,muttrcPattern |
| 481 | syn match muttrcPatHooks /\<\%(message\|reply\|send\|send2\|save\|\|fcc\%(-save\)\?\)-hook\>/ skipwhite nextgroup=muttrcPatHookNot,muttrcOptPattern |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 482 | |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 483 | syn match muttrcBindFunction contained /\S\+\>/ skipwhite contains=muttrcFunction |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 484 | syn match muttrcBindFunctionNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcBindFunction,muttrcBindFunctionNL |
| 485 | syn match muttrcBindKey contained /\S\+/ skipwhite contains=muttrcKey nextgroup=muttrcBindFunction,muttrcBindFunctionNL |
| 486 | syn match muttrcBindKeyNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcBindKey,muttrcBindKeyNL |
| 487 | syn match muttrcBindMenuList contained /\S\+/ skipwhite contains=muttrcMenu,muttrcMenuCommas nextgroup=muttrcBindKey,muttrcBindKeyNL |
| 488 | syn match muttrcBindMenuListNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcBindMenuList,muttrcBindMenuListNL |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 489 | syn keyword muttrcCommand skipwhite bind nextgroup=muttrcBindMenuList,muttrcBindMenuListNL |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 490 | |
Bram Moolenaar | 9964e46 | 2007-05-05 17:54:07 +0000 | [diff] [blame] | 491 | syn region muttrcMacroDescr contained keepend skipwhite start=+\s*\S+ms=e skip=+\\ + end=+ \|$+me=s |
| 492 | syn region muttrcMacroDescr contained keepend skipwhite start=+'+ms=e skip=+\\'+ end=+'+me=s |
| 493 | syn region muttrcMacroDescr contained keepend skipwhite start=+"+ms=e skip=+\\"+ end=+"+me=s |
| 494 | syn match muttrcMacroDescrNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcMacroDescr,muttrcMacroDescrNL |
| 495 | syn region muttrcMacroBody contained skipwhite start="\S" skip='\\ \|\\$' end=' \|$' contains=muttrcEscape,muttrcSet,muttrcUnset,muttrcReset,muttrcToggle,muttrcCommand,muttrcAction nextgroup=muttrcMacroDescr,muttrcMacroDescrNL |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 496 | syn region muttrcMacroBody matchgroup=Type contained skipwhite start=+'+ms=e skip=+\\'+ end=+'\|\%(\%(\\\\\)\@<!$\)+me=s contains=muttrcEscape,muttrcSet,muttrcUnset,muttrcReset,muttrcToggle,muttrcSpam,muttrcNoSpam,muttrcCommand,muttrcAction,muttrcVariable nextgroup=muttrcMacroDescr,muttrcMacroDescrNL |
| 497 | syn region muttrcMacroBody matchgroup=Type contained skipwhite start=+"+ms=e skip=+\\"+ end=+"\|\%(\%(\\\\\)\@<!$\)+me=s contains=muttrcEscape,muttrcSet,muttrcUnset,muttrcReset,muttrcToggle,muttrcSpam,muttrcNoSpam,muttrcCommand,muttrcAction,muttrcVariable nextgroup=muttrcMacroDescr,muttrcMacroDescrNL |
Bram Moolenaar | 9964e46 | 2007-05-05 17:54:07 +0000 | [diff] [blame] | 498 | syn match muttrcMacroBodyNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcMacroBody,muttrcMacroBodyNL |
| 499 | syn match muttrcMacroKey contained /\S\+/ skipwhite contains=muttrcKey nextgroup=muttrcMacroBody,muttrcMacroBodyNL |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 500 | syn match muttrcMacroKeyNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcMacroKey,muttrcMacroKeyNL |
| 501 | syn match muttrcMacroMenuList contained /\S\+/ skipwhite contains=muttrcMenu,muttrcMenuCommas nextgroup=muttrcMacroKey,muttrcMacroKeyNL |
| 502 | syn match muttrcMacroMenuListNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcMacroMenuList,muttrcMacroMenuListNL |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 503 | syn keyword muttrcCommand skipwhite macro nextgroup=muttrcMacroMenuList,muttrcMacroMenuListNL |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 504 | |
| 505 | syn match muttrcAddrContent contained "[a-zA-Z0-9._-]\+@[a-zA-Z0-9./-]\+\s*" skipwhite contains=muttrcEmail nextgroup=muttrcAddrContent |
| 506 | syn region muttrcAddrContent contained start=+'+ end=+'\s*+ skip=+\\'+ skipwhite contains=muttrcEmail nextgroup=muttrcAddrContent |
| 507 | syn region muttrcAddrContent contained start=+"+ end=+"\s*+ skip=+\\"+ skipwhite contains=muttrcEmail nextgroup=muttrcAddrContent |
| 508 | syn match muttrcAddrDef contained "-addr\s\+" skipwhite nextgroup=muttrcAddrContent |
| 509 | |
| 510 | syn match muttrcGroupFlag contained "-group" |
| 511 | syn region muttrcGroupDef contained start="-group\s\+" skip="\\$" end="\s" skipwhite keepend contains=muttrcGroupFlag,muttrcUnHighlightSpace |
| 512 | |
| 513 | syn keyword muttrcGroupKeyword contained group ungroup |
| 514 | syn region muttrcGroupLine keepend start=+^\s*\%(un\)\?group\s+ skip=+\\$+ end=+$+ contains=muttrcGroupKeyword,muttrcGroupDef,muttrcAddrDef,muttrcRXDef,muttrcUnHighlightSpace,muttrcComment |
| 515 | |
Bram Moolenaar | 9964e46 | 2007-05-05 17:54:07 +0000 | [diff] [blame] | 516 | syn match muttrcAliasGroupName contained /\w\+/ skipwhite nextgroup=muttrcAliasGroupDef,muttrcAliasKey,muttrcAliasNL |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 517 | syn match muttrcAliasGroupDefNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasGroupName,muttrcAliasGroupDefNL |
| 518 | syn match muttrcAliasGroupDef contained /\s*-group/ skipwhite nextgroup=muttrcAliasGroupName,muttrcAliasGroupDefNL contains=muttrcGroupFlag |
Bram Moolenaar | 9964e46 | 2007-05-05 17:54:07 +0000 | [diff] [blame] | 519 | syn match muttrcAliasComma contained /,/ skipwhite nextgroup=muttrcAliasEmail,muttrcAliasEncEmail,muttrcAliasNameNoParens,muttrcAliasENNL |
| 520 | syn match muttrcAliasEmail contained /\S\+@\S\+/ contains=muttrcEmail nextgroup=muttrcAliasName,muttrcAliasNameNL skipwhite |
| 521 | syn match muttrcAliasEncEmail contained /<[^>]\+>/ contains=muttrcEmail nextgroup=muttrcAliasComma |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 522 | syn match muttrcAliasEncEmailNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasEncEmail,muttrcAliasEncEmailNL |
| 523 | syn match muttrcAliasNameNoParens contained /[^<(@]\+\s\+/ nextgroup=muttrcAliasEncEmail,muttrcAliasEncEmailNL |
| 524 | syn region muttrcAliasName contained matchgroup=Type start=/(/ end=/)/ skipwhite |
| 525 | syn match muttrcAliasNameNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasName,muttrcAliasNameNL |
Bram Moolenaar | 9964e46 | 2007-05-05 17:54:07 +0000 | [diff] [blame] | 526 | syn match muttrcAliasENNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasEmail,muttrcAliasEncEmail,muttrcAliasNameNoParens,muttrcAliasENNL |
| 527 | syn match muttrcAliasKey contained /\s*[^- \t]\S\+/ skipwhite nextgroup=muttrcAliasEmail,muttrcAliasEncEmail,muttrcAliasNameNoParens,muttrcAliasENNL |
| 528 | syn match muttrcAliasNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasGroupDef,muttrcAliasKey,muttrcAliasNL |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 529 | syn keyword muttrcCommand skipwhite alias nextgroup=muttrcAliasGroupDef,muttrcAliasKey,muttrcAliasNL |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 530 | |
Bram Moolenaar | 9964e46 | 2007-05-05 17:54:07 +0000 | [diff] [blame] | 531 | syn match muttrcUnAliasKey contained "\s*\w\+\s*" skipwhite nextgroup=muttrcUnAliasKey,muttrcUnAliasNL |
| 532 | syn match muttrcUnAliasNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcUnAliasKey,muttrcUnAliasNL |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 533 | syn keyword muttrcCommand skipwhite unalias nextgroup=muttrcUnAliasKey,muttrcUnAliasNL |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 534 | |
| 535 | syn match muttrcSimplePat contained "!\?\^\?[~][ADEFgGklNOpPQRSTuUvV=$]" |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 536 | syn match muttrcSimplePat contained "!\?\^\?[~][mnXz]\s*\%([<>-][0-9]\+[kM]\?\|[0-9]\+[kM]\?[-]\%([0-9]\+[kM]\?\)\?\)" |
| 537 | syn match muttrcSimplePat contained "!\?\^\?[~][dr]\s*\%(\%(-\?[0-9]\{1,2}\%(/[0-9]\{1,2}\%(/[0-9]\{2}\%([0-9]\{2}\)\?\)\?\)\?\%([+*-][0-9]\+[ymwd]\)*\)\|\%(\%([0-9]\{1,2}\%(/[0-9]\{1,2}\%(/[0-9]\{2}\%([0-9]\{2}\)\?\)\?\)\?\%([+*-][0-9]\+[ymwd]\)*\)-\%([0-9]\{1,2}\%(/[0-9]\{1,2}\%(/[0-9]\{2}\%([0-9]\{2}\)\?\)\?\)\?\%([+*-][0-9]\+[ymwd]\)\?\)\?\)\|\%([<>=][0-9]\+[ymwd]\)\|\%(`[^`]\+`\)\|\%(\$[a-zA-Z0-9_-]\+\)\)" contains=muttrcShellString,muttrcVariable |
| 538 | syn match muttrcSimplePat contained "!\?\^\?[~][bBcCefhHiLstxy]\s*" nextgroup=muttrcSimplePatRXContainer |
| 539 | syn match muttrcSimplePat contained "!\?\^\?[%][bBcCefhHiLstxy]\s*" nextgroup=muttrcSimplePatString |
Bram Moolenaar | b8ff1fb | 2012-02-04 21:59:01 +0100 | [diff] [blame] | 540 | syn match muttrcSimplePat contained "!\?\^\?[=][bcCefhHiLstxy]\s*" nextgroup=muttrcSimplePatString |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 541 | syn region muttrcSimplePat contained keepend start=+!\?\^\?[~](+ end=+)+ contains=muttrcSimplePat |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 542 | "syn match muttrcSimplePat contained /'[^~=%][^']*/ contains=muttrcRXString |
Bram Moolenaar | 9964e46 | 2007-05-05 17:54:07 +0000 | [diff] [blame] | 543 | syn region muttrcSimplePatString contained keepend start=+"+ end=+"+ skip=+\\"+ |
| 544 | syn region muttrcSimplePatString contained keepend start=+'+ end=+'+ skip=+\\'+ |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 545 | syn region muttrcSimplePatString contained keepend start=+[^ "']+ skip=+\\ + end=+\s+re=e-1 |
| 546 | syn region muttrcSimplePatRXContainer contained keepend start=+"+ end=+"+ skip=+\\"+ contains=muttrcRXString |
| 547 | syn region muttrcSimplePatRXContainer contained keepend start=+'+ end=+'+ skip=+\\'+ contains=muttrcRXString |
| 548 | syn region muttrcSimplePatRXContainer contained keepend start=+[^ "']+ skip=+\\ + end=+\s+re=e-1 contains=muttrcRXString |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 549 | syn match muttrcSimplePatMetas contained /[(|)]/ |
| 550 | |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 551 | syn match muttrcOptSimplePat contained skipwhite /[~=%!(^].*/ contains=muttrcSimplePat,muttrcSimplePatMetas |
| 552 | syn match muttrcOptSimplePat contained skipwhite /[^~=%!(^].*/ contains=muttrcRXString |
| 553 | syn region muttrcOptPattern contained matchgroup=Type keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcOptSimplePat,muttrcUnHighlightSpace nextgroup=muttrcString,muttrcStringNL |
| 554 | syn region muttrcOptPattern contained matchgroup=Type keepend skipwhite start=+'+ skip=+\\'+ end=+'+ contains=muttrcOptSimplePat,muttrcUnHighlightSpace nextgroup=muttrcString,muttrcStringNL |
| 555 | syn region muttrcOptPattern contained keepend skipwhite start=+[~](+ end=+)+ skip=+\\)+ contains=muttrcSimplePat nextgroup=muttrcString,muttrcStringNL |
| 556 | syn match muttrcOptPattern contained skipwhite /[~][A-Za-z]/ contains=muttrcSimplePat nextgroup=muttrcString,muttrcStringNL |
| 557 | syn match muttrcOptPattern contained skipwhite /[.]/ nextgroup=muttrcString,muttrcStringNL |
| 558 | " Keep muttrcPattern and muttrcOptPattern synchronized |
| 559 | syn region muttrcPattern contained matchgroup=Type keepend skipwhite start=+"+ skip=+\\"+ end=+"+ contains=muttrcSimplePat,muttrcUnHighlightSpace,muttrcSimplePatMetas |
| 560 | syn region muttrcPattern contained matchgroup=Type keepend skipwhite start=+'+ skip=+\\'+ end=+'+ contains=muttrcSimplePat,muttrcUnHighlightSpace,muttrcSimplePatMetas |
| 561 | syn region muttrcPattern contained keepend skipwhite start=+[~](+ end=+)+ skip=+\\)+ contains=muttrcSimplePat |
| 562 | syn match muttrcPattern contained skipwhite /[~][A-Za-z]/ contains=muttrcSimplePat |
| 563 | syn match muttrcPattern contained skipwhite /[.]/ |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 564 | syn region muttrcPatternInner contained keepend start=+"[~=%!(^]+ms=s+1 skip=+\\"+ end=+"+me=e-1 contains=muttrcSimplePat,muttrcUnHighlightSpace,muttrcSimplePatMetas |
| 565 | syn region muttrcPatternInner contained keepend start=+'[~=%!(^]+ms=s+1 skip=+\\'+ end=+'+me=e-1 contains=muttrcSimplePat,muttrcUnHighlightSpace,muttrcSimplePatMetas |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 566 | |
| 567 | " Colour definitions takes object, foreground and background arguments (regexps excluded). |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 568 | syn match muttrcColorMatchCount contained "[0-9]\+" |
| 569 | syn match muttrcColorMatchCountNL contained skipwhite skipnl "\s*\\$" nextgroup=muttrcColorMatchCount,muttrcColorMatchCountNL |
Bram Moolenaar | 9964e46 | 2007-05-05 17:54:07 +0000 | [diff] [blame] | 570 | syn region muttrcColorRXPat contained start=+\s*'+ skip=+\\'+ end=+'\s*+ keepend skipwhite contains=muttrcRXString2 nextgroup=muttrcColorMatchCount,muttrcColorMatchCountNL |
| 571 | syn region muttrcColorRXPat contained start=+\s*"+ skip=+\\"+ end=+"\s*+ keepend skipwhite contains=muttrcRXString2 nextgroup=muttrcColorMatchCount,muttrcColorMatchCountNL |
Bram Moolenaar | e4a3bcf | 2016-08-26 19:52:37 +0200 | [diff] [blame] | 572 | syn keyword muttrcColorField skipwhite contained |
| 573 | \ attachment body bold error hdrdefault header index indicator markers message |
| 574 | \ normal prompt quoted search sidebar-divider sidebar-flagged sidebar-highlight |
| 575 | \ sidebar-indicator sidebar-new sidebar-spoolfile signature status tilde tree |
| 576 | \ underline |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 577 | syn match muttrcColorField contained "\<quoted\d\=\>" |
Bram Moolenaar | b8ff1fb | 2012-02-04 21:59:01 +0100 | [diff] [blame] | 578 | if use_mutt_sidebar == 1 |
| 579 | syn keyword muttrcColorField contained sidebar_new |
| 580 | endif |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 581 | syn keyword muttrcColor contained black blue cyan default green magenta red white yellow |
| 582 | syn keyword muttrcColor contained brightblack brightblue brightcyan brightdefault brightgreen brightmagenta brightred brightwhite brightyellow |
Bram Moolenaar | b8ff1fb | 2012-02-04 21:59:01 +0100 | [diff] [blame] | 583 | syn match muttrcColor contained "\<\%(bright\)\=color\d\{1,3}\>" |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 584 | " Now for the structure of the color line |
Bram Moolenaar | 9964e46 | 2007-05-05 17:54:07 +0000 | [diff] [blame] | 585 | syn match muttrcColorRXNL contained skipnl "\s*\\$" nextgroup=muttrcColorRXPat,muttrcColorRXNL |
| 586 | syn match muttrcColorBG contained /\s*[$]\?\w\+/ contains=muttrcColor,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcColorRXPat,muttrcColorRXNL |
| 587 | syn match muttrcColorBGNL contained skipnl "\s*\\$" nextgroup=muttrcColorBG,muttrcColorBGNL |
| 588 | syn match muttrcColorFG contained /\s*[$]\?\w\+/ contains=muttrcColor,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcColorBG,muttrcColorBGNL |
| 589 | syn match muttrcColorFGNL contained skipnl "\s*\\$" nextgroup=muttrcColorFG,muttrcColorFGNL |
| 590 | syn match muttrcColorContext contained /\s*[$]\?\w\+/ contains=muttrcColorField,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcColorFG,muttrcColorFGNL |
| 591 | syn match muttrcColorNL contained skipnl "\s*\\$" nextgroup=muttrcColorContext,muttrcColorNL |
| 592 | syn match muttrcColorKeyword contained /^\s*color\s\+/ nextgroup=muttrcColorContext,muttrcColorNL |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 593 | syn region muttrcColorLine keepend start=/^\s*color\s\+\%(index\|header\)\@!/ skip=+\\$+ end=+$+ contains=muttrcColorKeyword,muttrcComment,muttrcUnHighlightSpace |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 594 | " Now for the structure of the color index line |
Bram Moolenaar | 9964e46 | 2007-05-05 17:54:07 +0000 | [diff] [blame] | 595 | syn match muttrcPatternNL contained skipnl "\s*\\$" nextgroup=muttrcPattern,muttrcPatternNL |
| 596 | syn match muttrcColorBGI contained /\s*[$]\?\w\+\s*/ contains=muttrcColor,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcPattern,muttrcPatternNL |
| 597 | syn match muttrcColorBGNLI contained skipnl "\s*\\$" nextgroup=muttrcColorBGI,muttrcColorBGNLI |
| 598 | syn match muttrcColorFGI contained /\s*[$]\?\w\+/ contains=muttrcColor,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcColorBGI,muttrcColorBGNLI |
| 599 | syn match muttrcColorFGNLI contained skipnl "\s*\\$" nextgroup=muttrcColorFGI,muttrcColorFGNLI |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 600 | syn match muttrcColorContextI contained /\s*\<index\>/ contains=muttrcUnHighlightSpace nextgroup=muttrcColorFGI,muttrcColorFGNLI |
Bram Moolenaar | 9964e46 | 2007-05-05 17:54:07 +0000 | [diff] [blame] | 601 | syn match muttrcColorNLI contained skipnl "\s*\\$" nextgroup=muttrcColorContextI,muttrcColorNLI |
Bram Moolenaar | 9de9997 | 2010-08-09 22:33:06 +0200 | [diff] [blame] | 602 | syn match muttrcColorKeywordI contained skipwhite /\<color\>/ nextgroup=muttrcColorContextI,muttrcColorNLI |
| 603 | syn region muttrcColorLine keepend skipwhite start=/\<color\s\+index\>/ skip=+\\$+ end=+$+ contains=muttrcColorKeywordI,muttrcComment,muttrcUnHighlightSpace |
| 604 | " Now for the structure of the color header line |
| 605 | syn match muttrcRXPatternNL contained skipnl "\s*\\$" nextgroup=muttrcRXString,muttrcRXPatternNL |
| 606 | syn match muttrcColorBGH contained /\s*[$]\?\w\+\s*/ contains=muttrcColor,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcRXString,muttrcRXPatternNL |
| 607 | syn match muttrcColorBGNLH contained skipnl "\s*\\$" nextgroup=muttrcColorBGH,muttrcColorBGNLH |
| 608 | syn match muttrcColorFGH contained /\s*[$]\?\w\+/ contains=muttrcColor,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcColorBGH,muttrcColorBGNLH |
| 609 | syn match muttrcColorFGNLH contained skipnl "\s*\\$" nextgroup=muttrcColorFGH,muttrcColorFGNLH |
| 610 | syn match muttrcColorContextH contained /\s*\<header\>/ contains=muttrcUnHighlightSpace nextgroup=muttrcColorFGH,muttrcColorFGNLH |
| 611 | syn match muttrcColorNLH contained skipnl "\s*\\$" nextgroup=muttrcColorContextH,muttrcColorNLH |
| 612 | syn match muttrcColorKeywordH contained skipwhite /\<color\>/ nextgroup=muttrcColorContextH,muttrcColorNLH |
| 613 | syn region muttrcColorLine keepend skipwhite start=/\<color\s\+header\>/ skip=+\\$+ end=+$+ contains=muttrcColorKeywordH,muttrcComment,muttrcUnHighlightSpace |
Bram Moolenaar | f9393ef | 2006-04-24 19:47:27 +0000 | [diff] [blame] | 614 | " And now color's brother: |
| 615 | syn region muttrcUnColorPatterns contained skipwhite start=+\s*'+ end=+'+ skip=+\\'+ contains=muttrcPattern nextgroup=muttrcUnColorPatterns,muttrcUnColorPatNL |
| 616 | syn region muttrcUnColorPatterns contained skipwhite start=+\s*"+ end=+"+ skip=+\\"+ contains=muttrcPattern nextgroup=muttrcUnColorPatterns,muttrcUnColorPatNL |
| 617 | syn match muttrcUnColorPatterns contained skipwhite /\s*[^'"\s]\S\*/ contains=muttrcPattern nextgroup=muttrcUnColorPatterns,muttrcUnColorPatNL |
| 618 | syn match muttrcUnColorPatNL contained skipwhite skipnl /\s*\\$/ nextgroup=muttrcUnColorPatterns,muttrcUnColorPatNL |
| 619 | syn match muttrcUnColorAll contained skipwhite /[*]/ |
| 620 | syn match muttrcUnColorAPNL contained skipwhite skipnl /\s*\\$/ nextgroup=muttrcUnColorPatterns,muttrcUnColorAll,muttrcUnColorAPNL |
| 621 | syn match muttrcUnColorIndex contained skipwhite /\s*index\s\+/ nextgroup=muttrcUnColorPatterns,muttrcUnColorAll,muttrcUnColorAPNL |
| 622 | syn match muttrcUnColorIndexNL contained skipwhite skipnl /\s*\\$/ nextgroup=muttrcUnColorIndex,muttrcUnColorIndexNL |
| 623 | syn match muttrcUnColorKeyword contained skipwhite /^\s*uncolor\s\+/ nextgroup=muttrcUnColorIndex,muttrcUnColorIndexNL |
| 624 | syn region muttrcUnColorLine keepend start=+^\s*uncolor\s+ skip=+\\$+ end=+$+ contains=muttrcUnColorKeyword,muttrcComment,muttrcUnHighlightSpace |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 625 | |
| 626 | " Mono are almost like color (ojects inherited from color) |
| 627 | syn keyword muttrcMonoAttrib contained bold none normal reverse standout underline |
| 628 | syn keyword muttrcMono contained mono skipwhite nextgroup=muttrcColorField |
| 629 | syn match muttrcMonoLine "^\s*mono\s\+\S\+" skipwhite nextgroup=muttrcMonoAttrib contains=muttrcMono |
| 630 | |
| 631 | " Define the default highlighting. |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 632 | " Only when an item doesn't have highlighting yet |
| 633 | command -nargs=+ HiLink hi def link <args> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 634 | |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 635 | HiLink muttrcComment Comment |
| 636 | HiLink muttrcEscape SpecialChar |
| 637 | HiLink muttrcRXChars SpecialChar |
| 638 | HiLink muttrcString String |
| 639 | HiLink muttrcRXString String |
| 640 | HiLink muttrcRXString2 String |
| 641 | HiLink muttrcSpecial Special |
| 642 | HiLink muttrcHooks Type |
| 643 | HiLink muttrcGroupFlag Type |
| 644 | HiLink muttrcGroupDef Macro |
| 645 | HiLink muttrcAddrDef muttrcGroupFlag |
| 646 | HiLink muttrcRXDef muttrcGroupFlag |
| 647 | HiLink muttrcRXPat String |
| 648 | HiLink muttrcAliasGroupName Macro |
| 649 | HiLink muttrcAliasKey Identifier |
| 650 | HiLink muttrcUnAliasKey Identifier |
| 651 | HiLink muttrcAliasEncEmail Identifier |
| 652 | HiLink muttrcAliasParens Type |
| 653 | HiLink muttrcSetNumAssignment Number |
| 654 | HiLink muttrcSetBoolAssignment Boolean |
| 655 | HiLink muttrcSetQuadAssignment Boolean |
| 656 | HiLink muttrcSetStrAssignment String |
| 657 | HiLink muttrcEmail Special |
| 658 | HiLink muttrcVariableInner Special |
| 659 | HiLink muttrcEscapedVariable String |
| 660 | HiLink muttrcHeader Type |
| 661 | HiLink muttrcKeySpecial SpecialChar |
| 662 | HiLink muttrcKey Type |
| 663 | HiLink muttrcKeyName SpecialChar |
| 664 | HiLink muttrcVarBool Identifier |
| 665 | HiLink muttrcVarQuad Identifier |
| 666 | HiLink muttrcVarNum Identifier |
| 667 | HiLink muttrcVarStr Identifier |
| 668 | HiLink muttrcMenu Identifier |
| 669 | HiLink muttrcCommand Keyword |
| 670 | HiLink muttrcMacroDescr String |
| 671 | HiLink muttrcAction Macro |
| 672 | HiLink muttrcBadAction Error |
| 673 | HiLink muttrcBindFunction Error |
| 674 | HiLink muttrcBindMenuList Error |
| 675 | HiLink muttrcFunction Macro |
| 676 | HiLink muttrcGroupKeyword muttrcCommand |
| 677 | HiLink muttrcGroupLine Error |
| 678 | HiLink muttrcSubscribeKeyword muttrcCommand |
| 679 | HiLink muttrcSubscribeLine Error |
| 680 | HiLink muttrcListsKeyword muttrcCommand |
| 681 | HiLink muttrcListsLine Error |
| 682 | HiLink muttrcAlternateKeyword muttrcCommand |
| 683 | HiLink muttrcAlternatesLine Error |
| 684 | HiLink muttrcAttachmentsLine muttrcCommand |
| 685 | HiLink muttrcAttachmentsFlag Type |
| 686 | HiLink muttrcAttachmentsMimeType String |
| 687 | HiLink muttrcColorLine Error |
| 688 | HiLink muttrcColorContext Error |
| 689 | HiLink muttrcColorContextI Identifier |
| 690 | HiLink muttrcColorContextH Identifier |
| 691 | HiLink muttrcColorKeyword muttrcCommand |
| 692 | HiLink muttrcColorKeywordI muttrcColorKeyword |
| 693 | HiLink muttrcColorKeywordH muttrcColorKeyword |
| 694 | HiLink muttrcColorField Identifier |
| 695 | HiLink muttrcColor Type |
| 696 | HiLink muttrcColorFG Error |
| 697 | HiLink muttrcColorFGI Error |
| 698 | HiLink muttrcColorFGH Error |
| 699 | HiLink muttrcColorBG Error |
| 700 | HiLink muttrcColorBGI Error |
| 701 | HiLink muttrcColorBGH Error |
| 702 | HiLink muttrcMonoAttrib muttrcColor |
| 703 | HiLink muttrcMono muttrcCommand |
| 704 | HiLink muttrcSimplePat Identifier |
| 705 | HiLink muttrcSimplePatString Macro |
| 706 | HiLink muttrcSimplePatMetas Special |
| 707 | HiLink muttrcPattern Error |
| 708 | HiLink muttrcUnColorLine Error |
| 709 | HiLink muttrcUnColorKeyword muttrcCommand |
| 710 | HiLink muttrcUnColorIndex Identifier |
| 711 | HiLink muttrcShellString muttrcEscape |
| 712 | HiLink muttrcRXHooks muttrcCommand |
| 713 | HiLink muttrcRXHookNot Type |
| 714 | HiLink muttrcPatHooks muttrcCommand |
| 715 | HiLink muttrcPatHookNot Type |
| 716 | HiLink muttrcFormatConditionals2 Type |
| 717 | HiLink muttrcIndexFormatStr muttrcString |
| 718 | HiLink muttrcIndexFormatEscapes muttrcEscape |
| 719 | HiLink muttrcIndexFormatConditionals muttrcFormatConditionals2 |
| 720 | HiLink muttrcAliasFormatStr muttrcString |
| 721 | HiLink muttrcAliasFormatEscapes muttrcEscape |
| 722 | HiLink muttrcAttachFormatStr muttrcString |
| 723 | HiLink muttrcAttachFormatEscapes muttrcEscape |
| 724 | HiLink muttrcAttachFormatConditionals muttrcFormatConditionals2 |
| 725 | HiLink muttrcComposeFormatStr muttrcString |
| 726 | HiLink muttrcComposeFormatEscapes muttrcEscape |
| 727 | HiLink muttrcFolderFormatStr muttrcString |
| 728 | HiLink muttrcFolderFormatEscapes muttrcEscape |
| 729 | HiLink muttrcFolderFormatConditionals muttrcFormatConditionals2 |
| 730 | HiLink muttrcMixFormatStr muttrcString |
| 731 | HiLink muttrcMixFormatEscapes muttrcEscape |
| 732 | HiLink muttrcMixFormatConditionals muttrcFormatConditionals2 |
| 733 | HiLink muttrcPGPFormatStr muttrcString |
| 734 | HiLink muttrcPGPFormatEscapes muttrcEscape |
| 735 | HiLink muttrcPGPFormatConditionals muttrcFormatConditionals2 |
| 736 | HiLink muttrcPGPCmdFormatStr muttrcString |
| 737 | HiLink muttrcPGPCmdFormatEscapes muttrcEscape |
| 738 | HiLink muttrcPGPCmdFormatConditionals muttrcFormatConditionals2 |
| 739 | HiLink muttrcStatusFormatStr muttrcString |
| 740 | HiLink muttrcStatusFormatEscapes muttrcEscape |
| 741 | HiLink muttrcStatusFormatConditionals muttrcFormatConditionals2 |
| 742 | HiLink muttrcPGPGetKeysFormatStr muttrcString |
| 743 | HiLink muttrcPGPGetKeysFormatEscapes muttrcEscape |
| 744 | HiLink muttrcSmimeFormatStr muttrcString |
| 745 | HiLink muttrcSmimeFormatEscapes muttrcEscape |
| 746 | HiLink muttrcSmimeFormatConditionals muttrcFormatConditionals2 |
| 747 | HiLink muttrcTimeEscapes muttrcEscape |
| 748 | HiLink muttrcPGPTimeEscapes muttrcEscape |
| 749 | HiLink muttrcStrftimeEscapes Type |
| 750 | HiLink muttrcStrftimeFormatStr muttrcString |
| 751 | HiLink muttrcFormatErrors Error |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 752 | |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 753 | HiLink muttrcBindFunctionNL SpecialChar |
| 754 | HiLink muttrcBindKeyNL SpecialChar |
| 755 | HiLink muttrcBindMenuListNL SpecialChar |
| 756 | HiLink muttrcMacroDescrNL SpecialChar |
| 757 | HiLink muttrcMacroBodyNL SpecialChar |
| 758 | HiLink muttrcMacroKeyNL SpecialChar |
| 759 | HiLink muttrcMacroMenuListNL SpecialChar |
| 760 | HiLink muttrcColorMatchCountNL SpecialChar |
| 761 | HiLink muttrcColorNL SpecialChar |
| 762 | HiLink muttrcColorRXNL SpecialChar |
| 763 | HiLink muttrcColorBGNL SpecialChar |
| 764 | HiLink muttrcColorFGNL SpecialChar |
| 765 | HiLink muttrcAliasNameNL SpecialChar |
| 766 | HiLink muttrcAliasENNL SpecialChar |
| 767 | HiLink muttrcAliasNL SpecialChar |
| 768 | HiLink muttrcUnAliasNL SpecialChar |
| 769 | HiLink muttrcAliasGroupDefNL SpecialChar |
| 770 | HiLink muttrcAliasEncEmailNL SpecialChar |
| 771 | HiLink muttrcPatternNL SpecialChar |
| 772 | HiLink muttrcUnColorPatNL SpecialChar |
| 773 | HiLink muttrcUnColorAPNL SpecialChar |
| 774 | HiLink muttrcUnColorIndexNL SpecialChar |
| 775 | HiLink muttrcStringNL SpecialChar |
Bram Moolenaar | 9964e46 | 2007-05-05 17:54:07 +0000 | [diff] [blame] | 776 | |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 777 | delcommand HiLink |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 778 | |
| 779 | let b:current_syntax = "muttrc" |
| 780 | |
Bram Moolenaar | b8ff1fb | 2012-02-04 21:59:01 +0100 | [diff] [blame] | 781 | let &cpo = s:cpo_save |
| 782 | unlet s:cpo_save |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 783 | "EOF vim: ts=8 noet tw=100 sw=8 sts=0 ft=vim |