blob: bf53a42f9426ff4a7d0d64f56fe322910429624b [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim syntax file
2" Language: Mutt setup files
Bram Moolenaarf9393ef2006-04-24 19:47:27 +00003" Original: Preben 'Peppe' Guldberg <peppe-vim@wielders.org>
lunasophia10f23e12023-08-15 17:05:36 -04004" Maintainer: Luna Celeste <luna@unixpoet.dev>
5" Last Change: 14 Aug 2023
Bram Moolenaar071d4272004-06-13 20:20:40 +00006
lunasophia10f23e12023-08-15 17:05:36 -04007" This file covers mutt version 2.2.10
Bram Moolenaar071d4272004-06-13 20:20:40 +00008
Bram Moolenaar89bcfda2016-08-30 23:26:57 +02009" quit when a syntax file was already loaded
10if exists("b:current_syntax")
Bram Moolenaar071d4272004-06-13 20:20:40 +000011 finish
12endif
13
Bram Moolenaarb8ff1fb2012-02-04 21:59:01 +010014let s:cpo_save = &cpo
15set cpo&vim
16
Bram Moolenaar071d4272004-06-13 20:20:40 +000017" Set the keyword characters
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020018setlocal isk=@,48-57,_,-
Bram Moolenaar071d4272004-06-13 20:20:40 +000019
Bram Moolenaarb8ff1fb2012-02-04 21:59:01 +010020" handling optional variables
21if !exists("use_mutt_sidebar")
22 let use_mutt_sidebar=0
23endif
24
Bram Moolenaar9964e462007-05-05 17:54:07 +000025syn match muttrcComment "^# .*$" contains=@Spell
26syn match muttrcComment "^#[^ ].*$"
27syn match muttrcComment "^#$"
Bram Moolenaar071d4272004-06-13 20:20:40 +000028syn match muttrcComment "[^\\]#.*$"lc=1
29
30" Escape sequences (back-tick and pipe goes here too)
Bram Moolenaar9964e462007-05-05 17:54:07 +000031syn match muttrcEscape +\\[#tnr"'Cc ]+
Bram Moolenaar071d4272004-06-13 20:20:40 +000032syn match muttrcEscape +[`|]+
Bram Moolenaar446cb832008-06-24 21:56:24 +000033syn match muttrcEscape +\\$+
Bram Moolenaar071d4272004-06-13 20:20:40 +000034
35" The variables takes the following arguments
Bram Moolenaar9de99972010-08-09 22:33:06 +020036"syn match muttrcString contained "=\s*[^ #"'`]\+"lc=1 contains=muttrcEscape
37syn region muttrcString contained keepend start=+"+ms=e skip=+\\"+ end=+"+ contains=muttrcEscape,muttrcCommand,muttrcAction,muttrcShellString
38syn region muttrcString contained keepend start=+'+ms=e skip=+\\'+ end=+'+ contains=muttrcEscape,muttrcCommand,muttrcAction
39syn match muttrcStringNL contained skipwhite skipnl "\s*\\$" nextgroup=muttrcString,muttrcStringNL
Bram Moolenaarf9393ef2006-04-24 19:47:27 +000040
Bram Moolenaar9de99972010-08-09 22:33:06 +020041syn region muttrcShellString matchgroup=muttrcEscape keepend start=+`+ skip=+\\`+ end=+`+ contains=muttrcVarStr,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcCommand
Bram Moolenaarf9393ef2006-04-24 19:47:27 +000042
43syn match muttrcRXChars contained /[^\\][][.*?+]\+/hs=s+1
44syn match muttrcRXChars contained /[][|()][.*?+]*/
Bram Moolenaar446cb832008-06-24 21:56:24 +000045syn match muttrcRXChars contained /['"]^/ms=s+1
46syn match muttrcRXChars contained /$['"]/me=e-1
Bram Moolenaarf9393ef2006-04-24 19:47:27 +000047syn match muttrcRXChars contained /\\/
Bram Moolenaar9964e462007-05-05 17:54:07 +000048" Why does muttrcRXString2 work with one \ when muttrcRXString requires two?
Bram Moolenaar9de99972010-08-09 22:33:06 +020049syn region muttrcRXString contained skipwhite start=+'+ skip=+\\'+ end=+'+ contains=muttrcRXChars
50syn region muttrcRXString contained skipwhite start=+"+ skip=+\\"+ end=+"+ contains=muttrcRXChars
51syn region muttrcRXString contained skipwhite start=+[^ "'^]+ skip=+\\\s+ end=+\s+re=e-1 contains=muttrcRXChars
52" For some reason, skip refuses to match backslashes here...
53syn region muttrcRXString contained matchgroup=muttrcRXChars skipwhite start=+\^+ end=+[^\\]\s+re=e-1 contains=muttrcRXChars
54syn region muttrcRXString contained matchgroup=muttrcRXChars skipwhite start=+\^+ end=+$\s+ contains=muttrcRXChars
55syn region muttrcRXString2 contained skipwhite start=+'+ skip=+\'+ end=+'+ contains=muttrcRXChars
56syn region muttrcRXString2 contained skipwhite start=+"+ skip=+\"+ end=+"+ contains=muttrcRXChars
Bram Moolenaarf9393ef2006-04-24 19:47:27 +000057
Bram Moolenaar9de99972010-08-09 22:33:06 +020058" these must be kept synchronized with muttrcRXString, but are intended for
59" muttrcRXHooks
60syn region muttrcRXHookString contained keepend skipwhite start=+'+ skip=+\\'+ end=+'+ contains=muttrcRXString nextgroup=muttrcString,muttrcStringNL
61syn region muttrcRXHookString contained keepend skipwhite start=+"+ skip=+\\"+ end=+"+ contains=muttrcRXString nextgroup=muttrcString,muttrcStringNL
62syn region muttrcRXHookString contained keepend skipwhite start=+[^ "'^]+ skip=+\\\s+ end=+\s+re=e-1 contains=muttrcRXString nextgroup=muttrcString,muttrcStringNL
63syn region muttrcRXHookString contained keepend skipwhite start=+\^+ end=+[^\\]\s+re=e-1 contains=muttrcRXString nextgroup=muttrcString,muttrcStringNL
64syn region muttrcRXHookString contained keepend matchgroup=muttrcRXChars skipwhite start=+\^+ end=+$\s+ contains=muttrcRXString nextgroup=muttrcString,muttrcStringNL
65syn match muttrcRXHookStringNL contained skipwhite skipnl "\s*\\$" nextgroup=muttrcRXHookString,muttrcRXHookStringNL
66
67" these are exclusively for args lists (e.g. -rx pat pat pat ...)
68syn region muttrcRXPat contained keepend skipwhite start=+'+ skip=+\\'+ end=+'\s*+ contains=muttrcRXString nextgroup=muttrcRXPat
69syn region muttrcRXPat contained keepend skipwhite start=+"+ skip=+\\"+ end=+"\s*+ contains=muttrcRXString nextgroup=muttrcRXPat
70syn match muttrcRXPat contained /[^-'"#!]\S\+/ skipwhite contains=muttrcRXChars nextgroup=muttrcRXPat
Bram Moolenaarf9393ef2006-04-24 19:47:27 +000071syn match muttrcRXDef contained "-rx\s\+" skipwhite nextgroup=muttrcRXPat
Bram Moolenaar071d4272004-06-13 20:20:40 +000072
73syn match muttrcSpecial +\(['"]\)!\1+
74
Bram Moolenaar9de99972010-08-09 22:33:06 +020075syn match muttrcSetStrAssignment contained skipwhite /=\s*\%(\\\?\$\)\?[0-9A-Za-z_-]\+/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr contains=muttrcVariable,muttrcEscapedVariable
76syn region muttrcSetStrAssignment contained skipwhite keepend start=+=\s*"+hs=s+1 end=+"+ skip=+\\"+ nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr contains=muttrcString
77syn region muttrcSetStrAssignment contained skipwhite keepend start=+=\s*'+hs=s+1 end=+'+ skip=+\\'+ nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr contains=muttrcString
78syn match muttrcSetBoolAssignment contained skipwhite /=\s*\\\?\$\w\+/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr contains=muttrcVariable,muttrcEscapedVariable
79syn match muttrcSetBoolAssignment contained skipwhite /=\s*\%(yes\|no\)/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
80syn match muttrcSetBoolAssignment contained skipwhite /=\s*"\%(yes\|no\)"/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
81syn match muttrcSetBoolAssignment contained skipwhite /=\s*'\%(yes\|no\)'/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
82syn match muttrcSetQuadAssignment contained skipwhite /=\s*\\\?\$\w\+/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr contains=muttrcVariable,muttrcEscapedVariable
83syn match muttrcSetQuadAssignment contained skipwhite /=\s*\%(ask-\)\?\%(yes\|no\)/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
84syn match muttrcSetQuadAssignment contained skipwhite /=\s*"\%(ask-\)\?\%(yes\|no\)"/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
85syn match muttrcSetQuadAssignment contained skipwhite /=\s*'\%(ask-\)\?\%(yes\|no\)'/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
86syn match muttrcSetNumAssignment contained skipwhite /=\s*\\\?\$\w\+/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr contains=muttrcVariable,muttrcEscapedVariable
87syn match muttrcSetNumAssignment contained skipwhite /=\s*\d\+/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
88syn match muttrcSetNumAssignment contained skipwhite /=\s*"\d\+"/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
89syn match muttrcSetNumAssignment contained skipwhite /=\s*'\d\+'/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
Bram Moolenaar071d4272004-06-13 20:20:40 +000090
91" Now catch some email addresses and headers (purified version from mail.vim)
92syn match muttrcEmail "[a-zA-Z0-9._-]\+@[a-zA-Z0-9./-]\+"
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +020093syn match muttrcHeader "\<\c\%(From\|To\|C[Cc]\|B[Cc][Cc]\|Reply-To\|Subject\|Return-Path\|Received\|Date\|Replied\|Attach\)\>:\="
Bram Moolenaar071d4272004-06-13 20:20:40 +000094
Bram Moolenaarf9393ef2006-04-24 19:47:27 +000095syn match muttrcKeySpecial contained +\%(\\[Cc'"]\|\^\|\\[01]\d\{2}\)+
96syn match muttrcKey contained "\S\+" contains=muttrcKeySpecial,muttrcKeyName
97syn region muttrcKey contained start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=muttrcKeySpecial,muttrcKeyName
98syn region muttrcKey contained start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=muttrcKeySpecial,muttrcKeyName
99syn match muttrcKeyName contained "\<f\%(\d\|10\)\>"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000100syn match muttrcKeyName contained "\\[trne]"
Bram Moolenaarb8ff1fb2012-02-04 21:59:01 +0100101syn match muttrcKeyName contained "\c<\%(BackSpace\|BackTab\|Delete\|Down\|End\|Enter\|Esc\|Home\|Insert\|Left\|PageDown\|PageUp\|Return\|Right\|Space\|Tab\|Up\)>"
Bram Moolenaarc236c162008-07-13 17:41:49 +0000102syn match muttrcKeyName contained "<F[0-9]\+>"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000103
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +0200104syn keyword muttrcVarBool skipwhite contained
105 \ allow_8bit allow_ansi arrow_cursor ascii_chars askbcc askcc attach_split
lunasophia10f23e12023-08-15 17:05:36 -0400106 \ auto_tag autoedit auto_subscribe background_edit background_confirm_quit beep beep_new
107 \ bounce_delivered braille_friendly browser_abbreviate_mailboxes browser_sticky_cursor
108 \ change_folder_next check_mbox_size check_new collapse_unread compose_confirm_detach_first
109 \ confirmappend confirmcreate copy_decode_weed count_alternatives crypt_autoencrypt crypt_autopgp
110 \ crypt_autosign crypt_autosmime crypt_confirmhook crypt_protected_headers_read
111 \ crypt_protected_headers_save crypt_protected_headers_write crypt_opportunistic_encrypt
112 \ crypt_opportunistic_encrypt_strong_keys crypt_replyencrypt crypt_replysign
113 \ crypt_replysignencrypted crypt_timestamp crypt_use_gpgme crypt_use_pka cursor_overlay
114 \ delete_untag digest_collapse duplicate_threads edit_hdrs edit_headers encode_from
115 \ envelope_from fast_reply fcc_before_send fcc_clear flag_safe followup_to force_name forw_decode
116 \ forw_decrypt forw_quote forward_decode forward_quote hdrs header
117 \ header_color_partial help hidden_host hide_limited hide_missing hide_thread_subject
118 \ hide_top_limited hide_top_missing history_remove_dups honor_disposition idn_decode idn_encode
119 \ ignore_linear_white_space ignore_list_reply_to imap_check_subscribed imap_condstore imap_deflate
120 \ imap_list_subscribed imap_passive imap_peek imap_qresync imap_servernoise
121 \ implicit_autoview include_encrypted include_onlyfirst keep_flagged local_date_header
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +0200122 \ mail_check_recent mail_check_stats mailcap_sanitize maildir_check_cur
123 \ maildir_header_cache_verify maildir_trash mark_old markers menu_move_off
124 \ menu_scroll message_cache_clean meta_key metoo mh_purge mime_forward_decode
lunasophia10f23e12023-08-15 17:05:36 -0400125 \ mime_type_query_first muttlisp_inline_eval narrow_tree pager_stop pgp_auto_decode
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200126 \ pgp_auto_traditional pgp_autoencrypt pgp_autoinline pgp_autosign
lunasophia10f23e12023-08-15 17:05:36 -0400127 \ pgp_check_exit pgp_check_gpg_decrypt_status_fd pgp_create_traditional
128 \ pgp_ignore_subkeys pgp_long_ids pgp_replyencrypt pgp_replyinline
129 \ pgp_replysign pgp_replysignencrypted pgp_retainable_sigs pgp_self_encrypt
130 \ pgp_self_encrypt_as pgp_show_unusable pgp_strict_enc pgp_use_gpg_agent
131 \ pipe_decode pipe_decode_weed pipe_split pop_auth_try_all pop_last postpone_encrypt
132 \ postpone_encrypt_as print_decode print_decode_weed print_split prompt_after read_only
133 \ reflow_space_quotes reflow_text reflow_wrap reply_self resolve
134 \ resume_draft_files resume_edited_draft_files reverse_alias reverse_name
135 \ reverse_realname rfc2047_parameters save_address save_empty save_name score
136 \ sidebar_folder_indent sidebar_new_mail_only sidebar_next_new_wrap
137 \ sidebar_relative_shortpath_indent sidebar_short_path sidebar_sort sidebar_use_mailbox_shortcuts
138 \ sidebar_visible sig_on_top sig_dashes size_show_bytes size_show_fraction size_show_mb
139 \ size_units_on_left smart_wrap smime_ask_cert_label smime_decrypt_use_default_key
140 \ smime_is_default smime_self_encrypt smime_self_encrypt_as sort_re
141 \ ssl_force_tls ssl_use_sslv2 ssl_use_sslv3 ssl_use_tlsv1 ssl_use_tlsv1_3 ssl_usesystemcerts
142 \ ssl_verify_dates ssl_verify_host ssl_verify_partial_chains status_on_top
143 \ strict_mime strict_threads suspend text_flowed thorough_search
144 \ thread_received tilde ts_enabled tunnel_is_secure uncollapse_jump use_8bitmime use_domain
145 \ use_envelope_from use_from use_idn use_ipv6 uncollapse_new user_agent
146 \ wait_key weed wrap_search write_bcc
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +0200147 \ nextgroup=muttrcSetBoolAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
Bram Moolenaar071d4272004-06-13 20:20:40 +0000148
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +0200149syn keyword muttrcVarBool skipwhite contained
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200150 \ noallow_8bit noallow_ansi noarrow_cursor noascii_chars noaskbcc noaskcc
lunasophia10f23e12023-08-15 17:05:36 -0400151 \ noattach_split noauto_tag noautoedit noauto_subscribe nobackground_edit
152 \ nobackground_confirm_quit nobeep nobeep_new nobounce_delivered
153 \ nobraille_friendly nobrowser_abbreviate_mailboxes nobrowser_sticky_cursor nochange_folder_next
154 \ nocheck_mbox_size nocheck_new nocompose_confirm_detach_first nocollapse_unread noconfirmappend
155 \ noconfirmcreate nocopy_decode_weed nocount_alternatives nocrypt_autoencrypt nocrypt_autopgp
156 \ nocrypt_autosign nocrypt_autosmime nocrypt_confirmhook nocrypt_protected_headers_read
157 \ nocrypt_protected_headers_save nocrypt_protected_headers_write nocrypt_opportunistic_encrypt
158 \ nocrypt_opportunistic_encrypt_strong_keys nocrypt_replyencrypt nocrypt_replysign
159 \ nocrypt_replysignencrypted nocrypt_timestamp nocrypt_use_gpgme nocrypt_use_pka nocursor_overlay
160 \ nodelete_untag nodigest_collapse noduplicate_threads noedit_hdrs noedit_headers
161 \ noencode_from noenvelope_from nofast_reply nofcc_before_send nofcc_clear noflag_safe
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200162 \ nofollowup_to noforce_name noforw_decode noforw_decrypt noforw_quote
lunasophia10f23e12023-08-15 17:05:36 -0400163 \ noforward_decode noforward_quote nohdrs noheader
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200164 \ noheader_color_partial nohelp nohidden_host nohide_limited nohide_missing
165 \ nohide_thread_subject nohide_top_limited nohide_top_missing
166 \ nohistory_remove_dups nohonor_disposition noidn_decode noidn_encode
167 \ noignore_linear_white_space noignore_list_reply_to noimap_check_subscribed
lunasophia10f23e12023-08-15 17:05:36 -0400168 \ noimap_condstore noimap_deflate noimap_list_subscribed noimap_passive noimap_peek
169 \ noimap_qresync noimap_servernoise noimplicit_autoview noinclude_encrypted noinclude_onlyfirst
170 \ nokeep_flagged nolocal_date_header nomail_check_recent nomail_check_stats nomailcap_sanitize
171 \ nomaildir_check_cur nomaildir_header_cache_verify nomaildir_trash nomark_old
172 \ nomarkers nomenu_move_off nomenu_scroll nomessage_cache_clean nometa_key
173 \ nometoo nomh_purge nomime_forward_decode nomime_type_query_first nomuttlisp_inline_eval
174 \ nonarrow_tree nopager_stop nopgp_auto_decode nopgp_auto_traditional nopgp_autoencrypt
175 \ nopgp_autoinline nopgp_autosign nopgp_check_exit
176 \ nopgp_check_gpg_decrypt_status_fd nopgp_create_traditional
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200177 \ nopgp_ignore_subkeys nopgp_long_ids nopgp_replyencrypt nopgp_replyinline
178 \ nopgp_replysign nopgp_replysignencrypted nopgp_retainable_sigs
179 \ nopgp_self_encrypt nopgp_self_encrypt_as nopgp_show_unusable
lunasophia10f23e12023-08-15 17:05:36 -0400180 \ nopgp_strict_enc nopgp_use_gpg_agent nopipe_decode nopipe_decode_weed nopipe_split
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200181 \ nopop_auth_try_all nopop_last nopostpone_encrypt nopostpone_encrypt_as
lunasophia10f23e12023-08-15 17:05:36 -0400182 \ noprint_decode noprint_decode_weed noprint_split noprompt_after noread_only
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200183 \ noreflow_space_quotes noreflow_text noreflow_wrap noreply_self noresolve
184 \ noresume_draft_files noresume_edited_draft_files noreverse_alias
185 \ noreverse_name noreverse_realname norfc2047_parameters nosave_address
186 \ nosave_empty nosave_name noscore nosidebar_folder_indent
lunasophia10f23e12023-08-15 17:05:36 -0400187 \ nosidebar_new_mail_only nosidebar_next_new_wrap nosidebar_relative_shortpath_indent
188 \ nosidebar_short_path nosidebar_sort nosidebar_visible nosidebar_use_mailbox_shortcuts
189 \ nosig_dashes nosig_on_top nosize_show_bytes nosize_show_fraction nosize_show_mb
190 \ nosize_units_on_left nosmart_wrap nosmime_ask_cert_label nosmime_decrypt_use_default_key
191 \ nosmime_is_default nosmime_self_encrypt nosmime_self_encrypt_as nosort_re nossl_force_tls
192 \ nossl_use_sslv2 nossl_use_sslv3 nossl_use_tlsv1 nossl_use_tlsv1_3 nossl_usesystemcerts
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200193 \ nossl_verify_dates nossl_verify_host nossl_verify_partial_chains
194 \ nostatus_on_top nostrict_mime nostrict_threads nosuspend notext_flowed
lunasophia10f23e12023-08-15 17:05:36 -0400195 \ nothorough_search nothread_received notilde nots_enabled notunnel_is_secure nouncollapse_jump
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200196 \ nouse_8bitmime nouse_domain nouse_envelope_from nouse_from nouse_idn
197 \ nouse_ipv6 nouncollapse_new nouser_agent nowait_key noweed nowrap_search
198 \ nowrite_bcc
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +0200199 \ nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
Bram Moolenaar071d4272004-06-13 20:20:40 +0000200
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +0200201syn keyword muttrcVarBool skipwhite contained
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200202 \ invallow_8bit invallow_ansi invarrow_cursor invascii_chars invaskbcc
lunasophia10f23e12023-08-15 17:05:36 -0400203 \ invaskcc invattach_split invauto_tag invautoedit invauto_subscribe nobackground_edit
204 \ nobackground_confirm_quit invbeep invbeep_new invbounce_delivered invbraille_friendly
205 \ invbrowser_abbreviate_mailboxes invbrowser_sticky_cursor invchange_folder_next
206 \ invcheck_mbox_size invcheck_new invcollapse_unread invcompose_confirm_detach_first
207 \ invconfirmappend invcopy_decode_weed invconfirmcreate invcount_alternatives invcrypt_autopgp
208 \ invcrypt_autoencrypt invcrypt_autosign invcrypt_autosmime invcrypt_confirmhook
209 \ invcrypt_protected_headers_read invcrypt_protected_headers_save invcrypt_protected_headers_write
210 \ invcrypt_opportunistic_encrypt invcrypt_opportunistic_encrypt_strong_keys invcrypt_replysign
211 \ invcrypt_replyencrypt invcrypt_replysignencrypted invcrypt_timestamp invcrypt_use_gpgme
212 \ invcrypt_use_pka invcursor_overlay invdelete_untag invdigest_collapse invduplicate_threads
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200213 \ invedit_hdrs invedit_headers invencode_from invenvelope_from invfast_reply
lunasophia10f23e12023-08-15 17:05:36 -0400214 \ invfcc_before_send invfcc_clear invflag_safe invfollowup_to invforce_name invforw_decode
215 \ invforw_decrypt invforw_quote invforward_decode
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200216 \ invforward_quote invhdrs invheader invheader_color_partial invhelp
217 \ invhidden_host invhide_limited invhide_missing invhide_thread_subject
218 \ invhide_top_limited invhide_top_missing invhistory_remove_dups
219 \ invhonor_disposition invidn_decode invidn_encode
220 \ invignore_linear_white_space invignore_list_reply_to
lunasophia10f23e12023-08-15 17:05:36 -0400221 \ invimap_check_subscribed invimap_condstore invimap_deflate invimap_list_subscribed
222 \ invimap_passive invimap_peek invimap_qresync invimap_servernoise invimplicit_autoview
223 \ invinclude_encrypted invinclude_onlyfirst invkeep_flagged invlocal_date_header
224 \ invmail_check_recent invmail_check_stats invmailcap_sanitize invmaildir_check_cur
225 \ invmaildir_header_cache_verify invmaildir_trash invmark_old invmarkers invmenu_move_off
226 \ invmenu_scroll invmessage_cache_clean invmeta_key invmetoo invmh_purge
227 \ invmime_forward_decode invmime_type_query_first invmuttlisp_inline_eval invnarrow_tree
228 \ invpager_stop invpgp_auto_decode invpgp_auto_traditional invpgp_autoencrypt
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200229 \ invpgp_autoinline invpgp_autosign invpgp_check_exit
lunasophia10f23e12023-08-15 17:05:36 -0400230 \ invpgp_check_gpg_decrypt_status_fd invpgp_create_traditional
231 \ invpgp_ignore_subkeys invpgp_long_ids invpgp_replyencrypt invpgp_replyinline
232 \ invpgp_replysign invpgp_replysignencrypted invpgp_retainable_sigs
233 \ invpgp_self_encrypt invpgp_self_encrypt_as invpgp_show_unusable
234 \ invpgp_strict_enc invpgp_use_gpg_agent invpipe_decode invpipe_decode_weed invpipe_split
235 \ invpop_auth_try_all invpop_last invpostpone_encrypt invpostpone_encrypt_as
236 \ invprint_decode invprint_decode_weed invprint_split invprompt_after invread_only
237 \ invreflow_space_quotes invreflow_text invreflow_wrap invreply_self invresolve
238 \ invresume_draft_file sinvresume_edited_draft_files invreverse_alias
239 \ invreverse_name invreverse_realname invrfc2047_parameters invsave_address
240 \ invsave_empty invsave_name invscore invsidebar_folder_indent
241 \ invsidebar_new_mail_only invsidebar_next_new_wrap invsidebar_relative_shortpath_indent
242 \ invsidebar_short_path invsidebar_sort sidebar_use_mailbox_shortcuts invsidebar_visible
243 \ invsig_dashes invsig_on_top invsize_show_bytes invsize_show_fraction invsize_show_mb
244 \ invsize_units_on_left invsmart_wrap invsmime_ask_cert_label invsmime_decrypt_use_default_key
245 \ invsmime_is_default invsmime_self_encrypt invsmime_self_encrypt_as invsort_re invssl_force_tls
246 \ invssl_use_sslv2 invssl_use_sslv3 invssl_use_tlsv1 invssl_use_tlsv1_3 invssl_usesystemcerts
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200247 \ invssl_verify_dates invssl_verify_host invssl_verify_partial_chains
248 \ invstatus_on_top invstrict_mime invstrict_threads invsuspend invtext_flowed
lunasophia10f23e12023-08-15 17:05:36 -0400249 \ invthorough_search invthread_received invtilde invts_enabled invtunnel_is_secure
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200250 \ invuncollapse_jump invuse_8bitmime invuse_domain invuse_envelope_from
251 \ invuse_from invuse_idn invuse_ipv6 invuncollapse_new invuser_agent
252 \ invwait_key invweed invwrap_search invwrite_bcc
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +0200253 \ nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
Bram Moolenaar071d4272004-06-13 20:20:40 +0000254
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +0200255syn keyword muttrcVarQuad skipwhite contained
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200256 \ abort_nosubject abort_unmodified abort_noattach bounce copy crypt_verify_sig
lunasophia10f23e12023-08-15 17:05:36 -0400257 \ delete fcc_attach forward_attachments forward_decrypt forward_edit honor_followup_to include
258 \ mime_forward mime_forward_rest mime_fwd move pgp_mime_auto pgp_verify_sig pop_delete
259 \ pop_reconnect postpone print quit recall reply_to send_multipart_alternative ssl_starttls
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +0200260 \ nextgroup=muttrcSetQuadAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
Bram Moolenaar071d4272004-06-13 20:20:40 +0000261
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +0200262syn keyword muttrcVarQuad skipwhite contained
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200263 \ noabort_nosubject noabort_unmodified noabort_noattach nobounce nocopy
lunasophia10f23e12023-08-15 17:05:36 -0400264 \ nocrypt_verify_sig nodelete nofcc_attach noforward_attachments noforward_decrypt noforward_edit
265 \ nohonor_followup_to noinclude nomime_forward nomime_forward_rest nomime_fwd nomove
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200266 \ nopgp_mime_auto nopgp_verify_sig nopop_delete nopop_reconnect nopostpone
lunasophia10f23e12023-08-15 17:05:36 -0400267 \ noprint noquit norecall noreply_to nosend_multipart_alternative nossl_starttls
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +0200268 \ nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
Bram Moolenaar071d4272004-06-13 20:20:40 +0000269
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +0200270syn keyword muttrcVarQuad skipwhite contained
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200271 \ invabort_nosubject invabort_unmodified invabort_noattach invbounce invcopy
lunasophia10f23e12023-08-15 17:05:36 -0400272 \ invcrypt_verify_sig invdelete invfcc_attach invforward_attachments invforward_decrypt
273 \ invforward_edit invhonor_followup_to invinclude invmime_forward invmime_forward_rest
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200274 \ invmime_fwd invmove invpgp_mime_auto invpgp_verify_sig invpop_delete
275 \ invpop_reconnect invpostpone invprint invquit invrecall invreply_to
lunasophia10f23e12023-08-15 17:05:36 -0400276 \ invsend_multipart_alternative invssl_starttls
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +0200277 \ nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
Bram Moolenaar071d4272004-06-13 20:20:40 +0000278
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +0200279syn keyword muttrcVarNum skipwhite contained
lunasophia10f23e12023-08-15 17:05:36 -0400280 \ connect_timeout error_history history imap_fetch_chunk_size imap_keepalive imap_pipeline_depth
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200281 \ imap_poll_timeout mail_check mail_check_stats_interval menu_context net_inc
lunasophia10f23e12023-08-15 17:05:36 -0400282 \ pager_context pager_index_lines pager_skip_quoted_context pgp_timeout pop_checkinterval read_inc
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200283 \ save_history score_threshold_delete score_threshold_flag
284 \ score_threshold_read search_context sendmail_wait sidebar_width sleep_time
285 \ smime_timeout ssl_min_dh_prime_bits time_inc timeout wrap wrap_headers
286 \ wrapmargin write_inc
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +0200287 \ nextgroup=muttrcSetNumAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
Bram Moolenaar9de99972010-08-09 22:33:06 +0200288
289syn match muttrcFormatErrors contained /%./
Bram Moolenaar446cb832008-06-24 21:56:24 +0000290
291syn match muttrcStrftimeEscapes contained /%[AaBbCcDdeFGgHhIjklMmnpRrSsTtUuVvWwXxYyZz+%]/
292syn match muttrcStrftimeEscapes contained /%E[cCxXyY]/
293syn match muttrcStrftimeEscapes contained /%O[BdeHImMSuUVwWy]/
294
Bram Moolenaar9de99972010-08-09 22:33:06 +0200295syn region muttrcIndexFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcIndexFormatEscapes,muttrcIndexFormatConditionals,muttrcFormatErrors,muttrcTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
296syn region muttrcIndexFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcIndexFormatEscapes,muttrcIndexFormatConditionals,muttrcFormatErrors,muttrcTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
297syn region muttrcQueryFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcQueryFormatEscapes,muttrcQueryFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
298syn region muttrcAliasFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcAliasFormatEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
299syn region muttrcAliasFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcAliasFormatEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
300syn region muttrcAttachFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcAttachFormatEscapes,muttrcAttachFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
301syn region muttrcAttachFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcAttachFormatEscapes,muttrcAttachFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
302syn region muttrcComposeFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcComposeFormatEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
303syn region muttrcComposeFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcComposeFormatEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
304syn region muttrcFolderFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcFolderFormatEscapes,muttrcFolderFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
305syn region muttrcFolderFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcFolderFormatEscapes,muttrcFolderFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
306syn region muttrcMixFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcMixFormatEscapes,muttrcMixFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
307syn region muttrcMixFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcMixFormatEscapes,muttrcMixFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
308syn region muttrcPGPFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcPGPFormatEscapes,muttrcPGPFormatConditionals,muttrcFormatErrors,muttrcPGPTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
309syn region muttrcPGPFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcPGPFormatEscapes,muttrcPGPFormatConditionals,muttrcFormatErrors,muttrcPGPTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
310syn region muttrcPGPCmdFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcPGPCmdFormatEscapes,muttrcPGPCmdFormatConditionals,muttrcVariable,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
311syn region muttrcPGPCmdFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcPGPCmdFormatEscapes,muttrcPGPCmdFormatConditionals,muttrcVariable,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
312syn region muttrcStatusFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcStatusFormatEscapes,muttrcStatusFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
313syn region muttrcStatusFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcStatusFormatEscapes,muttrcStatusFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
314syn region muttrcPGPGetKeysFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcPGPGetKeysFormatEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
315syn region muttrcPGPGetKeysFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcPGPGetKeysFormatEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
316syn region muttrcSmimeFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcSmimeFormatEscapes,muttrcSmimeFormatConditionals,muttrcVariable,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
317syn region muttrcSmimeFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcSmimeFormatEscapes,muttrcSmimeFormatConditionals,muttrcVariable,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
318syn region muttrcStrftimeFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcStrftimeEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
319syn region muttrcStrftimeFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcStrftimeEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
Bram Moolenaar446cb832008-06-24 21:56:24 +0000320
321" The following info was pulled from hdr_format_str in hdrline.c
322syn match muttrcIndexFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[aAbBcCdDeEfFHilLmMnNOPsStTuvXyYZ%]/
Bram Moolenaar9de99972010-08-09 22:33:06 +0200323syn match muttrcIndexFormatEscapes contained /%[>|*]./
Bram Moolenaar446cb832008-06-24 21:56:24 +0000324syn match muttrcIndexFormatConditionals contained /%?[EFHlLMNOXyY]?/ nextgroup=muttrcFormatConditionals2
325" The following info was pulled from alias_format_str in addrbook.c
326syn match muttrcAliasFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[afnrt%]/
Bram Moolenaarc236c162008-07-13 17:41:49 +0000327" The following info was pulled from query_format_str in query.c
328syn match muttrcQueryFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[acent%]/
329syn match muttrcQueryFormatConditionals contained /%?[e]?/ nextgroup=muttrcFormatConditionals2
Bram Moolenaar446cb832008-06-24 21:56:24 +0000330" The following info was pulled from mutt_attach_fmt in recvattach.c
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200331syn match muttrcAttachFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[CcDdeFfImMnQstTuX%]/
Bram Moolenaar446cb832008-06-24 21:56:24 +0000332syn match muttrcAttachFormatEscapes contained /%[>|*]./
333syn match muttrcAttachFormatConditionals contained /%?[CcdDefInmMQstTuX]?/ nextgroup=muttrcFormatConditionals2
334syn match muttrcFormatConditionals2 contained /[^?]*?/
335" The following info was pulled from compose_format_str in compose.c
336syn match muttrcComposeFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[ahlv%]/
337syn match muttrcComposeFormatEscapes contained /%[>|*]./
338" The following info was pulled from folder_format_str in browser.c
Bram Moolenaar9de99972010-08-09 22:33:06 +0200339syn match muttrcFolderFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[CDdfFglNstu%]/
Bram Moolenaar446cb832008-06-24 21:56:24 +0000340syn match muttrcFolderFormatEscapes contained /%[>|*]./
341syn match muttrcFolderFormatConditionals contained /%?[N]?/
342" The following info was pulled from mix_entry_fmt in remailer.c
343syn match muttrcMixFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[ncsa%]/
344syn match muttrcMixFormatConditionals contained /%?[ncsa]?/
345" The following info was pulled from crypt_entry_fmt in crypt-gpgme.c
346" and pgp_entry_fmt in pgpkey.c (note that crypt_entry_fmt supports
347" 'p', but pgp_entry_fmt does not).
348syn match muttrcPGPFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[nkualfctp%]/
349syn match muttrcPGPFormatConditionals contained /%?[nkualfct]?/
350" The following info was pulled from _mutt_fmt_pgp_command in
351" pgpinvoke.c
352syn match muttrcPGPCmdFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[pfsar%]/
353syn match muttrcPGPCmdFormatConditionals contained /%?[pfsar]?/ nextgroup=muttrcFormatConditionals2
354" The following info was pulled from status_format_str in status.c
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200355syn match muttrcStatusFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[bdfFhlLmMnopPRrsStuvV%]/
Bram Moolenaar446cb832008-06-24 21:56:24 +0000356syn match muttrcStatusFormatEscapes contained /%[>|*]./
357syn match muttrcStatusFormatConditionals contained /%?[bdFlLmMnoptuV]?/ nextgroup=muttrcFormatConditionals2
358" This matches the documentation, but directly contradicts the code
359" (according to the code, this should be identical to the
360" muttrcPGPCmdFormatEscapes
361syn match muttrcPGPGetKeysFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[r%]/
362" The following info was pulled from _mutt_fmt_smime_command in
363" smime.c
364syn match muttrcSmimeFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[Cciskaf%]/
365syn match muttrcSmimeFormatConditionals contained /%?[Cciskaf]?/ nextgroup=muttrcFormatConditionals2
366
367syn region muttrcTimeEscapes contained start=+%{+ end=+}+ contains=muttrcStrftimeEscapes
368syn region muttrcTimeEscapes contained start=+%\[+ end=+\]+ contains=muttrcStrftimeEscapes
369syn region muttrcTimeEscapes contained start=+%(+ end=+)+ contains=muttrcStrftimeEscapes
370syn region muttrcTimeEscapes contained start=+%<+ end=+>+ contains=muttrcStrftimeEscapes
371syn region muttrcPGPTimeEscapes contained start=+%\[+ end=+\]+ contains=muttrcStrftimeEscapes
372
Bram Moolenaar9de99972010-08-09 22:33:06 +0200373syn keyword muttrcVarStr contained skipwhite attribution index_format message_format pager_format nextgroup=muttrcVarEqualsIdxFmt
374syn match muttrcVarEqualsIdxFmt contained skipwhite "=" nextgroup=muttrcIndexFormatStr
375syn keyword muttrcVarStr contained skipwhite alias_format nextgroup=muttrcVarEqualsAliasFmt
376syn match muttrcVarEqualsAliasFmt contained skipwhite "=" nextgroup=muttrcAliasFormatStr
377syn keyword muttrcVarStr contained skipwhite attach_format nextgroup=muttrcVarEqualsAttachFmt
378syn match muttrcVarEqualsAttachFmt contained skipwhite "=" nextgroup=muttrcAttachFormatStr
lunasophia10f23e12023-08-15 17:05:36 -0400379syn keyword muttrcVarStr contained skipwhite background_format nextgroup=muttrcVarEqualsBackgroundFormatFmt
380syn match muttrcVarEqualsBackgroundFormatFmt contained skipwhite "=" nextgroup=muttrcBackgroundFormatStr
Bram Moolenaar9de99972010-08-09 22:33:06 +0200381syn keyword muttrcVarStr contained skipwhite compose_format nextgroup=muttrcVarEqualsComposeFmt
382syn match muttrcVarEqualsComposeFmt contained skipwhite "=" nextgroup=muttrcComposeFormatStr
383syn keyword muttrcVarStr contained skipwhite folder_format nextgroup=muttrcVarEqualsFolderFmt
384syn match muttrcVarEqualsFolderFmt contained skipwhite "=" nextgroup=muttrcFolderFormatStr
lunasophia10f23e12023-08-15 17:05:36 -0400385syn keyword muttrcVarStr contained skipwhite message_id_format nextgroup=muttrcVarEqualsMessageIdFmt
386syn match muttrcVarEqualsMessageIdFmt contained skipwhite "=" nextgroup=muttrcMessageIdFormatStr
Bram Moolenaar9de99972010-08-09 22:33:06 +0200387syn keyword muttrcVarStr contained skipwhite mix_entry_format nextgroup=muttrcVarEqualsMixFmt
388syn match muttrcVarEqualsMixFmt contained skipwhite "=" nextgroup=muttrcMixFormatStr
389syn keyword muttrcVarStr contained skipwhite pgp_entry_format nextgroup=muttrcVarEqualsPGPFmt
390syn match muttrcVarEqualsPGPFmt contained skipwhite "=" nextgroup=muttrcPGPFormatStr
391syn keyword muttrcVarStr contained skipwhite query_format nextgroup=muttrcVarEqualsQueryFmt
392syn match muttrcVarEqualsQueryFmt contained skipwhite "=" nextgroup=muttrcQueryFormatStr
393syn 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
394syn match muttrcVarEqualsPGPCmdFmt contained skipwhite "=" nextgroup=muttrcPGPCmdFormatStr
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +0200395syn keyword muttrcVarStr contained skipwhite ts_icon_format ts_status_format status_format nextgroup=muttrcVarEqualsStatusFmt
Bram Moolenaar9de99972010-08-09 22:33:06 +0200396syn match muttrcVarEqualsStatusFmt contained skipwhite "=" nextgroup=muttrcStatusFormatStr
397syn keyword muttrcVarStr contained skipwhite pgp_getkeys_command nextgroup=muttrcVarEqualsPGPGetKeysFmt
398syn match muttrcVarEqualsPGPGetKeysFmt contained skipwhite "=" nextgroup=muttrcPGPGetKeysFormatStr
399syn 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
400syn match muttrcVarEqualsSmimeFmt contained skipwhite "=" nextgroup=muttrcSmimeFormatStr
401syn keyword muttrcVarStr contained skipwhite date_format nextgroup=muttrcVarEqualsStrftimeFmt
402syn match muttrcVarEqualsStrftimeFmt contained skipwhite "=" nextgroup=muttrcStrftimeFormatStr
Bram Moolenaar071d4272004-06-13 20:20:40 +0000403
Bram Moolenaar9de99972010-08-09 22:33:06 +0200404syn match muttrcVPrefix contained /[?&]/ nextgroup=muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
405
406syn match muttrcVarStr contained skipwhite 'my_[a-zA-Z0-9_]\+' nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +0200407syn keyword muttrcVarStr contained skipwhite
lunasophia10f23e12023-08-15 17:05:36 -0400408 \ abort_noattach_regexp alias_file assumed_charset attach_charset attach_save_dir attach_sep
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200409 \ attribution_locale certificate_file charset config_charset content_type
lunasophia10f23e12023-08-15 17:05:36 -0400410 \ crypt_protected_headers_subject default_hook display_filter dotlock_program dsn_notify
411 \ dsn_return editor entropy_file envelope_from_address escape fcc_delimiter folder forw_format
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200412 \ forward_attribution_intro forward_attribution_trailer forward_format from gecos_mask
413 \ hdr_format header_cache header_cache_compress header_cache_pagesize history_file
414 \ hostname imap_authenticators imap_delim_chars imap_headers imap_idle imap_login
lunasophia10f23e12023-08-15 17:05:36 -0400415 \ imap_oauth_refresh_command imap_pass imap_user indent_str indent_string ispell locale
416 \ mailcap_pat hmark_macro_prefix mask mbox mbox_type message_cachedir mh_seq_flagged
417 \ mh_seq_replied mh_seq_unseen mime_type_query_command mixmaster msg_format new_mail_command
418 \ pager pgp_default_key pgp_decryption_okay pgp_good_sign pgp_mime_signature_description
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200419 \ pgp_mime_signature_filename pgp_sign_as pgp_sort_keys pipe_sep pop_authenticators
lunasophia10f23e12023-08-15 17:05:36 -0400420 \ pop_host pop_oauth_refresh_command pop_pass pop_user post_indent_str post_indent_string
421 \ postpone_encrypt_as postponed preconnect print_cmd print_command query_command
422 \ quote_regexp realname record reply_regexp send_charset send_multipart_alternative_filter
423 \ sendmail shell sidebar_delim
424 \ sidebar_delim_chars sidebar_divider_char sidebar_format sidebar_indent_string
425 \ sidebar_sort_method signature simple_search smileys smime_ca_location smime_certificates
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200426 \ smime_default_key smime_encrypt_with smime_keys smime_sign_as smime_sign_digest_alg
lunasophia10f23e12023-08-15 17:05:36 -0400427 \ smtp_authenticators smtp_oauth_refresh_command smtp_pass smtp_url sort sort_alias
428 \ sort_aux sort_browser sort_thread_groups spam_separator spoolfile ssl_ca_certificates_file
429 \ ssl_ciphers ssl_client_cert ssl_verify_host_override status_chars tmpdir to_chars trash
430 \ ts_icon_format ts_status_format tunnel visual
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +0200431 \ nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000432
433" Present in 1.4.2.1 (pgp_create_traditional was a bool then)
Bram Moolenaar9de99972010-08-09 22:33:06 +0200434syn keyword muttrcVarBool contained skipwhite imap_force_ssl noimap_force_ssl invimap_force_ssl nextgroup=muttrcSetBoolAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000435"syn keyword muttrcVarQuad contained pgp_create_traditional nopgp_create_traditional invpgp_create_traditional
Bram Moolenaar9de99972010-08-09 22:33:06 +0200436syn keyword muttrcVarStr contained skipwhite alternates nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
Bram Moolenaar071d4272004-06-13 20:20:40 +0000437
438syn keyword muttrcMenu contained alias attach browser compose editor index pager postpone pgp mix query generic
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000439syn match muttrcMenuList "\S\+" contained contains=muttrcMenu
440syn match muttrcMenuCommas /,/ contained
Bram Moolenaar071d4272004-06-13 20:20:40 +0000441
lunasophia10f23e12023-08-15 17:05:36 -0400442syn keyword muttrcHooks contained skipwhite account-hook charset-hook iconv-hook index-format-hook message-hook folder-hook mbox-hook save-hook fcc-hook fcc-save-hook send-hook send2-hook reply-hook crypt-hook
Bram Moolenaar9de99972010-08-09 22:33:06 +0200443
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +0200444syn keyword muttrcCommand skipwhite
lunasophia10f23e12023-08-15 17:05:36 -0400445 \ alternative_order auto_view cd exec hdr_order iconv-hook ignore index-format-hook mailboxes
446 \ mailto_allow mime_lookup my_hdr pgp-hook push run score sidebar_whitelist source
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +0200447 \ unalternative_order unalternative_order unauto_view ungroup unhdr_order
448 \ unignore unmailboxes unmailto_allow unmime_lookup unmono unmy_hdr unscore
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200449 \ unsidebar_whitelist
Bram Moolenaar9de99972010-08-09 22:33:06 +0200450syn keyword muttrcCommand skipwhite charset-hook nextgroup=muttrcRXString
451syn keyword muttrcCommand skipwhite unhook nextgroup=muttrcHooks
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000452
Bram Moolenaar9de99972010-08-09 22:33:06 +0200453syn keyword muttrcCommand skipwhite spam nextgroup=muttrcSpamPattern
454syn region muttrcSpamPattern contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcPattern nextgroup=muttrcString,muttrcStringNL
455syn region muttrcSpamPattern contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcPattern nextgroup=muttrcString,muttrcStringNL
456
457syn keyword muttrcCommand skipwhite nospam nextgroup=muttrcNoSpamPattern
458syn region muttrcNoSpamPattern contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcPattern
459syn region muttrcNoSpamPattern contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcPattern
Bram Moolenaar9964e462007-05-05 17:54:07 +0000460
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000461syn match muttrcAttachmentsMimeType contained "[*a-z0-9_-]\+/[*a-z0-9._-]\+\s*" skipwhite nextgroup=muttrcAttachmentsMimeType
462syn match muttrcAttachmentsFlag contained "[+-]\%([AI]\|inline\|attachment\)\s\+" skipwhite nextgroup=muttrcAttachmentsMimeType
463syn match muttrcAttachmentsLine "^\s*\%(un\)\?attachments\s\+" skipwhite nextgroup=muttrcAttachmentsFlag
464
465syn match muttrcUnHighlightSpace contained "\%(\s\+\|\\$\)"
466
Bram Moolenaar9de99972010-08-09 22:33:06 +0200467syn keyword muttrcAsterisk contained *
468syn keyword muttrcListsKeyword lists skipwhite nextgroup=muttrcGroupDef,muttrcComment
469syn keyword muttrcListsKeyword unlists skipwhite nextgroup=muttrcAsterisk,muttrcComment
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000470
Bram Moolenaar9de99972010-08-09 22:33:06 +0200471syn keyword muttrcSubscribeKeyword subscribe nextgroup=muttrcGroupDef,muttrcComment
472syn keyword muttrcSubscribeKeyword unsubscribe nextgroup=muttrcAsterisk,muttrcComment
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000473
474syn keyword muttrcAlternateKeyword contained alternates unalternates
475syn region muttrcAlternatesLine keepend start=+^\s*\%(un\)\?alternates\s+ skip=+\\$+ end=+$+ contains=muttrcAlternateKeyword,muttrcGroupDef,muttrcRXPat,muttrcUnHighlightSpace,muttrcComment
476
Bram Moolenaarb8ff1fb2012-02-04 21:59:01 +0100477" muttrcVariable includes a prefix because partial strings are considered
478" valid.
479syn match muttrcVariable contained "\\\@<![a-zA-Z_-]*\$[a-zA-Z_-]\+" contains=muttrcVariableInner
480syn match muttrcVariableInner contained "\$[a-zA-Z_-]\+"
Bram Moolenaar9de99972010-08-09 22:33:06 +0200481syn match muttrcEscapedVariable contained "\\\$[a-zA-Z_-]\+"
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000482
483syn match muttrcBadAction contained "[^<>]\+" contains=muttrcEmail
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200484syn match muttrcFunction contained "\<\%(attach\|bounce\|copy\|delete\|display\|flag\|forward\|mark\|parent\|pipe\|postpone\|print\|purge\|recall\|resend\|root\|save\|send\|tag\|undelete\)-message\>"
Bram Moolenaar9de99972010-08-09 22:33:06 +0200485syn match muttrcFunction contained "\<\%(delete\|next\|previous\|read\|tag\|break\|undelete\)-thread\>"
486syn match muttrcFunction contained "\<link-threads\>"
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000487syn match muttrcFunction contained "\<\%(backward\|capitalize\|downcase\|forward\|kill\|upcase\)-word\>"
488syn match muttrcFunction contained "\<\%(delete\|filter\|first\|last\|next\|pipe\|previous\|print\|save\|select\|tag\|undelete\)-entry\>"
489syn match muttrcFunction contained "\<attach-\%(file\|key\)\>"
lunasophia10f23e12023-08-15 17:05:36 -0400490syn match muttrcFunction contained "\<background-compose-menu\>"
491syn match muttrcFunction contained "\<browse-mailbox\>"
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000492syn match muttrcFunction contained "\<change-\%(dir\|folder\|folder-readonly\)\>"
493syn match muttrcFunction contained "\<check-\%(new\|traditional-pgp\)\>"
494syn match muttrcFunction contained "\<current-\%(bottom\|middle\|top\)\>"
495syn match muttrcFunction contained "\<decode-\%(copy\|save\)\>"
496syn match muttrcFunction contained "\<delete-\%(char\|pattern\|subthread\)\>"
lunasophia10f23e12023-08-15 17:05:36 -0400497syn match muttrcFunction contained "\<descend-directory\>"
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000498syn match muttrcFunction contained "\<display-\%(address\|toggle-weed\)\>"
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200499syn match muttrcFunction contained "\<echo\>"
500syn match muttrcFunction contained "\<edit\%(-\%(bcc\|cc\|description\|encoding\|fcc\|file\|from\|headers\|label\|mime\|reply-to\|subject\|to\|type\)\)\?\>"
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000501syn match muttrcFunction contained "\<enter-\%(command\|mask\)\>"
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200502syn match muttrcFunction contained "\<error-history\>"
lunasophia10f23e12023-08-15 17:05:36 -0400503syn match muttrcFunction contained "\<group-chat-reply\>"
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000504syn match muttrcFunction contained "\<half-\%(up\|down\)\>"
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200505syn match muttrcFunction contained "\<history-\%(up\|down\|search\)\>"
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000506syn match muttrcFunction contained "\<kill-\%(eol\|eow\|line\)\>"
lunasophia10f23e12023-08-15 17:05:36 -0400507syn match muttrcFunction contained "\<move-\%(down\|up\)\>"
Bram Moolenaar9de99972010-08-09 22:33:06 +0200508syn match muttrcFunction contained "\<next-\%(line\|new\%(-then-unread\)\?\|page\|subthread\|undeleted\|unread\|unread-mailbox\)\>"
509syn match muttrcFunction contained "\<previous-\%(line\|new\%(-then-unread\)\?\|page\|subthread\|undeleted\|unread\)\>"
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000510syn match muttrcFunction contained "\<search\%(-\%(next\|opposite\|reverse\|toggle\)\)\?\>"
511syn match muttrcFunction contained "\<show-\%(limit\|version\)\>"
512syn match muttrcFunction contained "\<sort-\%(mailbox\|reverse\)\>"
Bram Moolenaar9de99972010-08-09 22:33:06 +0200513syn match muttrcFunction contained "\<tag-\%(pattern\|\%(sub\)\?thread\|prefix\%(-cond\)\?\)\>"
514syn match muttrcFunction contained "\<end-cond\>"
lunasophia10f23e12023-08-15 17:05:36 -0400515syn match muttrcFunction contained "\<sidebar-\%(first\|last\|next\|next-new\|open\|page-down\|page-up\|prev\|prev-new\|toggle-visible\)\>"
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000516syn match muttrcFunction contained "\<toggle-\%(mailboxes\|new\|quoted\|subscribed\|unlink\|write\)\>"
517syn match muttrcFunction contained "\<undelete-\%(pattern\|subthread\)\>"
518syn match muttrcFunction contained "\<collapse-\%(parts\|thread\|all\)\>"
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200519syn match muttrcFunction contained "\<rename-attachment\>"
520syn match muttrcFunction contained "\<subjectrx\>"
521syn match muttrcFunction contained "\<\%(un\)\?setenv\>"
lunasophia10f23e12023-08-15 17:05:36 -0400522syn match muttrcFunction contained "\<view-\%(alt\|alt-text\|alt-mailcap\|alt-pager\|attach\|attachments\|file\|mailcap\|name\|pager\|text\)\>"
523syn match muttrcFunction contained "\<\%(backspace\|backward-char\|bol\|bottom\|bottom-page\|buffy-cycle\|check-stats\|clear-flag\|complete\%(-query\)\?\|compose-to-sender\|copy-file\|create-alias\|detach-file\|eol\|exit\|extract-keys\|\%(imap-\)\?fetch-mail\|forget-passphrase\|forward-char\|group-reply\|help\|ispell\|jump\|limit\|list-action\|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-headers\|skip-quoted\|sort\|subscribe\|sync-mailbox\|top\|top-page\|transpose-chars\|unsubscribe\|untag-pattern\|verify-key\|what-key\|write-fcc\)\>"
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +0200524syn keyword muttrcFunction contained imap-logout-all
Bram Moolenaarb8ff1fb2012-02-04 21:59:01 +0100525if use_mutt_sidebar == 1
526 syn match muttrcFunction contained "\<sidebar-\%(prev\|next\|open\|scroll-up\|scroll-down\)"
527endif
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000528syn match muttrcAction contained "<[^>]\{-}>" contains=muttrcBadAction,muttrcFunction,muttrcKeyName
Bram Moolenaar071d4272004-06-13 20:20:40 +0000529
Bram Moolenaar9de99972010-08-09 22:33:06 +0200530syn keyword muttrcCommand set skipwhite nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
531syn keyword muttrcCommand unset skipwhite nextgroup=muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
532syn keyword muttrcCommand reset skipwhite nextgroup=muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
533syn keyword muttrcCommand toggle skipwhite nextgroup=muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
Bram Moolenaar071d4272004-06-13 20:20:40 +0000534
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000535" First, functions that take regular expressions:
Bram Moolenaar9de99972010-08-09 22:33:06 +0200536syn match muttrcRXHookNot contained /!\s*/ skipwhite nextgroup=muttrcRXHookString,muttrcRXHookStringNL
537syn match muttrcRXHooks /\<\%(account\|folder\)-hook\>/ skipwhite nextgroup=muttrcRXHookNot,muttrcRXHookString,muttrcRXHookStringNL
Bram Moolenaar071d4272004-06-13 20:20:40 +0000538
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000539" Now, functions that take patterns
540syn match muttrcPatHookNot contained /!\s*/ skipwhite nextgroup=muttrcPattern
Bram Moolenaar9de99972010-08-09 22:33:06 +0200541syn match muttrcPatHooks /\<\%(mbox\|crypt\)-hook\>/ skipwhite nextgroup=muttrcPatHookNot,muttrcPattern
542syn match muttrcPatHooks /\<\%(message\|reply\|send\|send2\|save\|\|fcc\%(-save\)\?\)-hook\>/ skipwhite nextgroup=muttrcPatHookNot,muttrcOptPattern
Bram Moolenaar071d4272004-06-13 20:20:40 +0000543
lunasophia10f23e12023-08-15 17:05:36 -0400544syn match muttrcIndexFormatHookName contained /\S\+/ skipwhite nextgroup=muttrcPattern,muttrcString
545syn match muttrcIndexFormatHook /index-format-hook/ skipwhite nextgroup=muttrcIndexFormatHookName,muttrcString
546
Bram Moolenaar9de99972010-08-09 22:33:06 +0200547syn match muttrcBindFunction contained /\S\+\>/ skipwhite contains=muttrcFunction
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000548syn match muttrcBindFunctionNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcBindFunction,muttrcBindFunctionNL
549syn match muttrcBindKey contained /\S\+/ skipwhite contains=muttrcKey nextgroup=muttrcBindFunction,muttrcBindFunctionNL
550syn match muttrcBindKeyNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcBindKey,muttrcBindKeyNL
551syn match muttrcBindMenuList contained /\S\+/ skipwhite contains=muttrcMenu,muttrcMenuCommas nextgroup=muttrcBindKey,muttrcBindKeyNL
552syn match muttrcBindMenuListNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcBindMenuList,muttrcBindMenuListNL
Bram Moolenaar9de99972010-08-09 22:33:06 +0200553syn keyword muttrcCommand skipwhite bind nextgroup=muttrcBindMenuList,muttrcBindMenuListNL
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000554
Bram Moolenaar9964e462007-05-05 17:54:07 +0000555syn region muttrcMacroDescr contained keepend skipwhite start=+\s*\S+ms=e skip=+\\ + end=+ \|$+me=s
556syn region muttrcMacroDescr contained keepend skipwhite start=+'+ms=e skip=+\\'+ end=+'+me=s
557syn region muttrcMacroDescr contained keepend skipwhite start=+"+ms=e skip=+\\"+ end=+"+me=s
558syn match muttrcMacroDescrNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcMacroDescr,muttrcMacroDescrNL
559syn region muttrcMacroBody contained skipwhite start="\S" skip='\\ \|\\$' end=' \|$' contains=muttrcEscape,muttrcSet,muttrcUnset,muttrcReset,muttrcToggle,muttrcCommand,muttrcAction nextgroup=muttrcMacroDescr,muttrcMacroDescrNL
Bram Moolenaar9de99972010-08-09 22:33:06 +0200560syn 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
561syn 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 Moolenaar9964e462007-05-05 17:54:07 +0000562syn match muttrcMacroBodyNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcMacroBody,muttrcMacroBodyNL
563syn match muttrcMacroKey contained /\S\+/ skipwhite contains=muttrcKey nextgroup=muttrcMacroBody,muttrcMacroBodyNL
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000564syn match muttrcMacroKeyNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcMacroKey,muttrcMacroKeyNL
565syn match muttrcMacroMenuList contained /\S\+/ skipwhite contains=muttrcMenu,muttrcMenuCommas nextgroup=muttrcMacroKey,muttrcMacroKeyNL
566syn match muttrcMacroMenuListNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcMacroMenuList,muttrcMacroMenuListNL
Bram Moolenaar9de99972010-08-09 22:33:06 +0200567syn keyword muttrcCommand skipwhite macro nextgroup=muttrcMacroMenuList,muttrcMacroMenuListNL
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000568
569syn match muttrcAddrContent contained "[a-zA-Z0-9._-]\+@[a-zA-Z0-9./-]\+\s*" skipwhite contains=muttrcEmail nextgroup=muttrcAddrContent
570syn region muttrcAddrContent contained start=+'+ end=+'\s*+ skip=+\\'+ skipwhite contains=muttrcEmail nextgroup=muttrcAddrContent
571syn region muttrcAddrContent contained start=+"+ end=+"\s*+ skip=+\\"+ skipwhite contains=muttrcEmail nextgroup=muttrcAddrContent
572syn match muttrcAddrDef contained "-addr\s\+" skipwhite nextgroup=muttrcAddrContent
573
574syn match muttrcGroupFlag contained "-group"
575syn region muttrcGroupDef contained start="-group\s\+" skip="\\$" end="\s" skipwhite keepend contains=muttrcGroupFlag,muttrcUnHighlightSpace
576
577syn keyword muttrcGroupKeyword contained group ungroup
578syn region muttrcGroupLine keepend start=+^\s*\%(un\)\?group\s+ skip=+\\$+ end=+$+ contains=muttrcGroupKeyword,muttrcGroupDef,muttrcAddrDef,muttrcRXDef,muttrcUnHighlightSpace,muttrcComment
579
Bram Moolenaar9964e462007-05-05 17:54:07 +0000580syn match muttrcAliasGroupName contained /\w\+/ skipwhite nextgroup=muttrcAliasGroupDef,muttrcAliasKey,muttrcAliasNL
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000581syn match muttrcAliasGroupDefNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasGroupName,muttrcAliasGroupDefNL
582syn match muttrcAliasGroupDef contained /\s*-group/ skipwhite nextgroup=muttrcAliasGroupName,muttrcAliasGroupDefNL contains=muttrcGroupFlag
Bram Moolenaar9964e462007-05-05 17:54:07 +0000583syn match muttrcAliasComma contained /,/ skipwhite nextgroup=muttrcAliasEmail,muttrcAliasEncEmail,muttrcAliasNameNoParens,muttrcAliasENNL
584syn match muttrcAliasEmail contained /\S\+@\S\+/ contains=muttrcEmail nextgroup=muttrcAliasName,muttrcAliasNameNL skipwhite
585syn match muttrcAliasEncEmail contained /<[^>]\+>/ contains=muttrcEmail nextgroup=muttrcAliasComma
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000586syn match muttrcAliasEncEmailNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasEncEmail,muttrcAliasEncEmailNL
587syn match muttrcAliasNameNoParens contained /[^<(@]\+\s\+/ nextgroup=muttrcAliasEncEmail,muttrcAliasEncEmailNL
588syn region muttrcAliasName contained matchgroup=Type start=/(/ end=/)/ skipwhite
589syn match muttrcAliasNameNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasName,muttrcAliasNameNL
Bram Moolenaar9964e462007-05-05 17:54:07 +0000590syn match muttrcAliasENNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasEmail,muttrcAliasEncEmail,muttrcAliasNameNoParens,muttrcAliasENNL
591syn match muttrcAliasKey contained /\s*[^- \t]\S\+/ skipwhite nextgroup=muttrcAliasEmail,muttrcAliasEncEmail,muttrcAliasNameNoParens,muttrcAliasENNL
592syn match muttrcAliasNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasGroupDef,muttrcAliasKey,muttrcAliasNL
Bram Moolenaar9de99972010-08-09 22:33:06 +0200593syn keyword muttrcCommand skipwhite alias nextgroup=muttrcAliasGroupDef,muttrcAliasKey,muttrcAliasNL
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000594
Bram Moolenaar9964e462007-05-05 17:54:07 +0000595syn match muttrcUnAliasKey contained "\s*\w\+\s*" skipwhite nextgroup=muttrcUnAliasKey,muttrcUnAliasNL
596syn match muttrcUnAliasNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcUnAliasKey,muttrcUnAliasNL
Bram Moolenaar9de99972010-08-09 22:33:06 +0200597syn keyword muttrcCommand skipwhite unalias nextgroup=muttrcUnAliasKey,muttrcUnAliasNL
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000598
599syn match muttrcSimplePat contained "!\?\^\?[~][ADEFgGklNOpPQRSTuUvV=$]"
Bram Moolenaar9de99972010-08-09 22:33:06 +0200600syn match muttrcSimplePat contained "!\?\^\?[~][mnXz]\s*\%([<>-][0-9]\+[kM]\?\|[0-9]\+[kM]\?[-]\%([0-9]\+[kM]\?\)\?\)"
601syn 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
602syn match muttrcSimplePat contained "!\?\^\?[~][bBcCefhHiLstxy]\s*" nextgroup=muttrcSimplePatRXContainer
603syn match muttrcSimplePat contained "!\?\^\?[%][bBcCefhHiLstxy]\s*" nextgroup=muttrcSimplePatString
Bram Moolenaarb8ff1fb2012-02-04 21:59:01 +0100604syn match muttrcSimplePat contained "!\?\^\?[=][bcCefhHiLstxy]\s*" nextgroup=muttrcSimplePatString
Bram Moolenaar446cb832008-06-24 21:56:24 +0000605syn region muttrcSimplePat contained keepend start=+!\?\^\?[~](+ end=+)+ contains=muttrcSimplePat
Bram Moolenaar9de99972010-08-09 22:33:06 +0200606"syn match muttrcSimplePat contained /'[^~=%][^']*/ contains=muttrcRXString
Bram Moolenaar9964e462007-05-05 17:54:07 +0000607syn region muttrcSimplePatString contained keepend start=+"+ end=+"+ skip=+\\"+
608syn region muttrcSimplePatString contained keepend start=+'+ end=+'+ skip=+\\'+
Bram Moolenaar9de99972010-08-09 22:33:06 +0200609syn region muttrcSimplePatString contained keepend start=+[^ "']+ skip=+\\ + end=+\s+re=e-1
610syn region muttrcSimplePatRXContainer contained keepend start=+"+ end=+"+ skip=+\\"+ contains=muttrcRXString
611syn region muttrcSimplePatRXContainer contained keepend start=+'+ end=+'+ skip=+\\'+ contains=muttrcRXString
612syn region muttrcSimplePatRXContainer contained keepend start=+[^ "']+ skip=+\\ + end=+\s+re=e-1 contains=muttrcRXString
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000613syn match muttrcSimplePatMetas contained /[(|)]/
614
Bram Moolenaar9de99972010-08-09 22:33:06 +0200615syn match muttrcOptSimplePat contained skipwhite /[~=%!(^].*/ contains=muttrcSimplePat,muttrcSimplePatMetas
616syn match muttrcOptSimplePat contained skipwhite /[^~=%!(^].*/ contains=muttrcRXString
617syn region muttrcOptPattern contained matchgroup=Type keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcOptSimplePat,muttrcUnHighlightSpace nextgroup=muttrcString,muttrcStringNL
618syn region muttrcOptPattern contained matchgroup=Type keepend skipwhite start=+'+ skip=+\\'+ end=+'+ contains=muttrcOptSimplePat,muttrcUnHighlightSpace nextgroup=muttrcString,muttrcStringNL
619syn region muttrcOptPattern contained keepend skipwhite start=+[~](+ end=+)+ skip=+\\)+ contains=muttrcSimplePat nextgroup=muttrcString,muttrcStringNL
620syn match muttrcOptPattern contained skipwhite /[~][A-Za-z]/ contains=muttrcSimplePat nextgroup=muttrcString,muttrcStringNL
621syn match muttrcOptPattern contained skipwhite /[.]/ nextgroup=muttrcString,muttrcStringNL
622" Keep muttrcPattern and muttrcOptPattern synchronized
623syn region muttrcPattern contained matchgroup=Type keepend skipwhite start=+"+ skip=+\\"+ end=+"+ contains=muttrcSimplePat,muttrcUnHighlightSpace,muttrcSimplePatMetas
624syn region muttrcPattern contained matchgroup=Type keepend skipwhite start=+'+ skip=+\\'+ end=+'+ contains=muttrcSimplePat,muttrcUnHighlightSpace,muttrcSimplePatMetas
625syn region muttrcPattern contained keepend skipwhite start=+[~](+ end=+)+ skip=+\\)+ contains=muttrcSimplePat
Bram Moolenaar0b0f0992018-05-22 21:41:30 +0200626syn region muttrcPattern contained keepend skipwhite start=+[~][<>](+ end=+)+ skip=+\\)+ contains=muttrcSimplePat
Bram Moolenaar9de99972010-08-09 22:33:06 +0200627syn match muttrcPattern contained skipwhite /[~][A-Za-z]/ contains=muttrcSimplePat
628syn match muttrcPattern contained skipwhite /[.]/
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000629syn region muttrcPatternInner contained keepend start=+"[~=%!(^]+ms=s+1 skip=+\\"+ end=+"+me=e-1 contains=muttrcSimplePat,muttrcUnHighlightSpace,muttrcSimplePatMetas
630syn region muttrcPatternInner contained keepend start=+'[~=%!(^]+ms=s+1 skip=+\\'+ end=+'+me=e-1 contains=muttrcSimplePat,muttrcUnHighlightSpace,muttrcSimplePatMetas
Bram Moolenaar071d4272004-06-13 20:20:40 +0000631
632" Colour definitions takes object, foreground and background arguments (regexps excluded).
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000633syn match muttrcColorMatchCount contained "[0-9]\+"
634syn match muttrcColorMatchCountNL contained skipwhite skipnl "\s*\\$" nextgroup=muttrcColorMatchCount,muttrcColorMatchCountNL
Bram Moolenaar9964e462007-05-05 17:54:07 +0000635syn region muttrcColorRXPat contained start=+\s*'+ skip=+\\'+ end=+'\s*+ keepend skipwhite contains=muttrcRXString2 nextgroup=muttrcColorMatchCount,muttrcColorMatchCountNL
636syn region muttrcColorRXPat contained start=+\s*"+ skip=+\\"+ end=+"\s*+ keepend skipwhite contains=muttrcRXString2 nextgroup=muttrcColorMatchCount,muttrcColorMatchCountNL
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +0200637syn keyword muttrcColorField skipwhite contained
638 \ attachment body bold error hdrdefault header index indicator markers message
639 \ normal prompt quoted search sidebar-divider sidebar-flagged sidebar-highlight
640 \ sidebar-indicator sidebar-new sidebar-spoolfile signature status tilde tree
641 \ underline
Bram Moolenaar071d4272004-06-13 20:20:40 +0000642syn match muttrcColorField contained "\<quoted\d\=\>"
Bram Moolenaarb8ff1fb2012-02-04 21:59:01 +0100643if use_mutt_sidebar == 1
644 syn keyword muttrcColorField contained sidebar_new
645endif
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000646syn keyword muttrcColor contained black blue cyan default green magenta red white yellow
647syn keyword muttrcColor contained brightblack brightblue brightcyan brightdefault brightgreen brightmagenta brightred brightwhite brightyellow
Bram Moolenaarb8ff1fb2012-02-04 21:59:01 +0100648syn match muttrcColor contained "\<\%(bright\)\=color\d\{1,3}\>"
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000649" Now for the structure of the color line
Bram Moolenaar9964e462007-05-05 17:54:07 +0000650syn match muttrcColorRXNL contained skipnl "\s*\\$" nextgroup=muttrcColorRXPat,muttrcColorRXNL
651syn match muttrcColorBG contained /\s*[$]\?\w\+/ contains=muttrcColor,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcColorRXPat,muttrcColorRXNL
652syn match muttrcColorBGNL contained skipnl "\s*\\$" nextgroup=muttrcColorBG,muttrcColorBGNL
653syn match muttrcColorFG contained /\s*[$]\?\w\+/ contains=muttrcColor,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcColorBG,muttrcColorBGNL
654syn match muttrcColorFGNL contained skipnl "\s*\\$" nextgroup=muttrcColorFG,muttrcColorFGNL
655syn match muttrcColorContext contained /\s*[$]\?\w\+/ contains=muttrcColorField,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcColorFG,muttrcColorFGNL
656syn match muttrcColorNL contained skipnl "\s*\\$" nextgroup=muttrcColorContext,muttrcColorNL
657syn match muttrcColorKeyword contained /^\s*color\s\+/ nextgroup=muttrcColorContext,muttrcColorNL
Bram Moolenaar9de99972010-08-09 22:33:06 +0200658syn region muttrcColorLine keepend start=/^\s*color\s\+\%(index\|header\)\@!/ skip=+\\$+ end=+$+ contains=muttrcColorKeyword,muttrcComment,muttrcUnHighlightSpace
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000659" Now for the structure of the color index line
Bram Moolenaar9964e462007-05-05 17:54:07 +0000660syn match muttrcPatternNL contained skipnl "\s*\\$" nextgroup=muttrcPattern,muttrcPatternNL
661syn match muttrcColorBGI contained /\s*[$]\?\w\+\s*/ contains=muttrcColor,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcPattern,muttrcPatternNL
662syn match muttrcColorBGNLI contained skipnl "\s*\\$" nextgroup=muttrcColorBGI,muttrcColorBGNLI
663syn match muttrcColorFGI contained /\s*[$]\?\w\+/ contains=muttrcColor,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcColorBGI,muttrcColorBGNLI
664syn match muttrcColorFGNLI contained skipnl "\s*\\$" nextgroup=muttrcColorFGI,muttrcColorFGNLI
Bram Moolenaar9de99972010-08-09 22:33:06 +0200665syn match muttrcColorContextI contained /\s*\<index\>/ contains=muttrcUnHighlightSpace nextgroup=muttrcColorFGI,muttrcColorFGNLI
Bram Moolenaar9964e462007-05-05 17:54:07 +0000666syn match muttrcColorNLI contained skipnl "\s*\\$" nextgroup=muttrcColorContextI,muttrcColorNLI
Bram Moolenaar9de99972010-08-09 22:33:06 +0200667syn match muttrcColorKeywordI contained skipwhite /\<color\>/ nextgroup=muttrcColorContextI,muttrcColorNLI
668syn region muttrcColorLine keepend skipwhite start=/\<color\s\+index\>/ skip=+\\$+ end=+$+ contains=muttrcColorKeywordI,muttrcComment,muttrcUnHighlightSpace
669" Now for the structure of the color header line
670syn match muttrcRXPatternNL contained skipnl "\s*\\$" nextgroup=muttrcRXString,muttrcRXPatternNL
671syn match muttrcColorBGH contained /\s*[$]\?\w\+\s*/ contains=muttrcColor,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcRXString,muttrcRXPatternNL
672syn match muttrcColorBGNLH contained skipnl "\s*\\$" nextgroup=muttrcColorBGH,muttrcColorBGNLH
673syn match muttrcColorFGH contained /\s*[$]\?\w\+/ contains=muttrcColor,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcColorBGH,muttrcColorBGNLH
674syn match muttrcColorFGNLH contained skipnl "\s*\\$" nextgroup=muttrcColorFGH,muttrcColorFGNLH
675syn match muttrcColorContextH contained /\s*\<header\>/ contains=muttrcUnHighlightSpace nextgroup=muttrcColorFGH,muttrcColorFGNLH
676syn match muttrcColorNLH contained skipnl "\s*\\$" nextgroup=muttrcColorContextH,muttrcColorNLH
677syn match muttrcColorKeywordH contained skipwhite /\<color\>/ nextgroup=muttrcColorContextH,muttrcColorNLH
678syn region muttrcColorLine keepend skipwhite start=/\<color\s\+header\>/ skip=+\\$+ end=+$+ contains=muttrcColorKeywordH,muttrcComment,muttrcUnHighlightSpace
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000679" And now color's brother:
680syn region muttrcUnColorPatterns contained skipwhite start=+\s*'+ end=+'+ skip=+\\'+ contains=muttrcPattern nextgroup=muttrcUnColorPatterns,muttrcUnColorPatNL
681syn region muttrcUnColorPatterns contained skipwhite start=+\s*"+ end=+"+ skip=+\\"+ contains=muttrcPattern nextgroup=muttrcUnColorPatterns,muttrcUnColorPatNL
682syn match muttrcUnColorPatterns contained skipwhite /\s*[^'"\s]\S\*/ contains=muttrcPattern nextgroup=muttrcUnColorPatterns,muttrcUnColorPatNL
683syn match muttrcUnColorPatNL contained skipwhite skipnl /\s*\\$/ nextgroup=muttrcUnColorPatterns,muttrcUnColorPatNL
684syn match muttrcUnColorAll contained skipwhite /[*]/
685syn match muttrcUnColorAPNL contained skipwhite skipnl /\s*\\$/ nextgroup=muttrcUnColorPatterns,muttrcUnColorAll,muttrcUnColorAPNL
686syn match muttrcUnColorIndex contained skipwhite /\s*index\s\+/ nextgroup=muttrcUnColorPatterns,muttrcUnColorAll,muttrcUnColorAPNL
687syn match muttrcUnColorIndexNL contained skipwhite skipnl /\s*\\$/ nextgroup=muttrcUnColorIndex,muttrcUnColorIndexNL
688syn match muttrcUnColorKeyword contained skipwhite /^\s*uncolor\s\+/ nextgroup=muttrcUnColorIndex,muttrcUnColorIndexNL
689syn region muttrcUnColorLine keepend start=+^\s*uncolor\s+ skip=+\\$+ end=+$+ contains=muttrcUnColorKeyword,muttrcComment,muttrcUnHighlightSpace
Bram Moolenaar071d4272004-06-13 20:20:40 +0000690
691" Mono are almost like color (ojects inherited from color)
692syn keyword muttrcMonoAttrib contained bold none normal reverse standout underline
693syn keyword muttrcMono contained mono skipwhite nextgroup=muttrcColorField
694syn match muttrcMonoLine "^\s*mono\s\+\S\+" skipwhite nextgroup=muttrcMonoAttrib contains=muttrcMono
695
696" Define the default highlighting.
Bram Moolenaar89bcfda2016-08-30 23:26:57 +0200697" Only when an item doesn't have highlighting yet
Bram Moolenaar071d4272004-06-13 20:20:40 +0000698
Bram Moolenaarf37506f2016-08-31 22:22:10 +0200699hi def link muttrcComment Comment
700hi def link muttrcEscape SpecialChar
701hi def link muttrcRXChars SpecialChar
702hi def link muttrcString String
703hi def link muttrcRXString String
704hi def link muttrcRXString2 String
705hi def link muttrcSpecial Special
706hi def link muttrcHooks Type
707hi def link muttrcGroupFlag Type
708hi def link muttrcGroupDef Macro
709hi def link muttrcAddrDef muttrcGroupFlag
710hi def link muttrcRXDef muttrcGroupFlag
711hi def link muttrcRXPat String
712hi def link muttrcAliasGroupName Macro
713hi def link muttrcAliasKey Identifier
714hi def link muttrcUnAliasKey Identifier
715hi def link muttrcAliasEncEmail Identifier
716hi def link muttrcAliasParens Type
717hi def link muttrcSetNumAssignment Number
718hi def link muttrcSetBoolAssignment Boolean
719hi def link muttrcSetQuadAssignment Boolean
720hi def link muttrcSetStrAssignment String
721hi def link muttrcEmail Special
722hi def link muttrcVariableInner Special
723hi def link muttrcEscapedVariable String
724hi def link muttrcHeader Type
725hi def link muttrcKeySpecial SpecialChar
726hi def link muttrcKey Type
727hi def link muttrcKeyName SpecialChar
728hi def link muttrcVarBool Identifier
729hi def link muttrcVarQuad Identifier
730hi def link muttrcVarNum Identifier
731hi def link muttrcVarStr Identifier
732hi def link muttrcMenu Identifier
733hi def link muttrcCommand Keyword
734hi def link muttrcMacroDescr String
735hi def link muttrcAction Macro
736hi def link muttrcBadAction Error
737hi def link muttrcBindFunction Error
738hi def link muttrcBindMenuList Error
739hi def link muttrcFunction Macro
740hi def link muttrcGroupKeyword muttrcCommand
741hi def link muttrcGroupLine Error
742hi def link muttrcSubscribeKeyword muttrcCommand
743hi def link muttrcSubscribeLine Error
744hi def link muttrcListsKeyword muttrcCommand
745hi def link muttrcListsLine Error
746hi def link muttrcAlternateKeyword muttrcCommand
747hi def link muttrcAlternatesLine Error
748hi def link muttrcAttachmentsLine muttrcCommand
749hi def link muttrcAttachmentsFlag Type
750hi def link muttrcAttachmentsMimeType String
751hi def link muttrcColorLine Error
752hi def link muttrcColorContext Error
753hi def link muttrcColorContextI Identifier
754hi def link muttrcColorContextH Identifier
755hi def link muttrcColorKeyword muttrcCommand
756hi def link muttrcColorKeywordI muttrcColorKeyword
757hi def link muttrcColorKeywordH muttrcColorKeyword
758hi def link muttrcColorField Identifier
759hi def link muttrcColor Type
760hi def link muttrcColorFG Error
761hi def link muttrcColorFGI Error
762hi def link muttrcColorFGH Error
763hi def link muttrcColorBG Error
764hi def link muttrcColorBGI Error
765hi def link muttrcColorBGH Error
766hi def link muttrcMonoAttrib muttrcColor
767hi def link muttrcMono muttrcCommand
768hi def link muttrcSimplePat Identifier
769hi def link muttrcSimplePatString Macro
770hi def link muttrcSimplePatMetas Special
771hi def link muttrcPattern Error
772hi def link muttrcUnColorLine Error
773hi def link muttrcUnColorKeyword muttrcCommand
774hi def link muttrcUnColorIndex Identifier
775hi def link muttrcShellString muttrcEscape
776hi def link muttrcRXHooks muttrcCommand
777hi def link muttrcRXHookNot Type
778hi def link muttrcPatHooks muttrcCommand
lunasophia10f23e12023-08-15 17:05:36 -0400779hi def link muttrcIndexFormatHookName muttrcCommand
780hi def link muttrcIndexFormatHook muttrcCommand
Bram Moolenaarf37506f2016-08-31 22:22:10 +0200781hi def link muttrcPatHookNot Type
782hi def link muttrcFormatConditionals2 Type
783hi def link muttrcIndexFormatStr muttrcString
784hi def link muttrcIndexFormatEscapes muttrcEscape
785hi def link muttrcIndexFormatConditionals muttrcFormatConditionals2
786hi def link muttrcAliasFormatStr muttrcString
787hi def link muttrcAliasFormatEscapes muttrcEscape
788hi def link muttrcAttachFormatStr muttrcString
789hi def link muttrcAttachFormatEscapes muttrcEscape
790hi def link muttrcAttachFormatConditionals muttrcFormatConditionals2
lunasophia10f23e12023-08-15 17:05:36 -0400791hi def link muttrcBackgroundFormatStr muttrcString
Bram Moolenaarf37506f2016-08-31 22:22:10 +0200792hi def link muttrcComposeFormatStr muttrcString
793hi def link muttrcComposeFormatEscapes muttrcEscape
794hi def link muttrcFolderFormatStr muttrcString
795hi def link muttrcFolderFormatEscapes muttrcEscape
796hi def link muttrcFolderFormatConditionals muttrcFormatConditionals2
lunasophia10f23e12023-08-15 17:05:36 -0400797hi def link muttrcMessageIdFormatStr muttrcString
Bram Moolenaarf37506f2016-08-31 22:22:10 +0200798hi def link muttrcMixFormatStr muttrcString
799hi def link muttrcMixFormatEscapes muttrcEscape
800hi def link muttrcMixFormatConditionals muttrcFormatConditionals2
801hi def link muttrcPGPFormatStr muttrcString
802hi def link muttrcPGPFormatEscapes muttrcEscape
803hi def link muttrcPGPFormatConditionals muttrcFormatConditionals2
804hi def link muttrcPGPCmdFormatStr muttrcString
805hi def link muttrcPGPCmdFormatEscapes muttrcEscape
806hi def link muttrcPGPCmdFormatConditionals muttrcFormatConditionals2
807hi def link muttrcStatusFormatStr muttrcString
808hi def link muttrcStatusFormatEscapes muttrcEscape
809hi def link muttrcStatusFormatConditionals muttrcFormatConditionals2
810hi def link muttrcPGPGetKeysFormatStr muttrcString
811hi def link muttrcPGPGetKeysFormatEscapes muttrcEscape
812hi def link muttrcSmimeFormatStr muttrcString
813hi def link muttrcSmimeFormatEscapes muttrcEscape
814hi def link muttrcSmimeFormatConditionals muttrcFormatConditionals2
815hi def link muttrcTimeEscapes muttrcEscape
816hi def link muttrcPGPTimeEscapes muttrcEscape
817hi def link muttrcStrftimeEscapes Type
818hi def link muttrcStrftimeFormatStr muttrcString
Bram Moolenaarf37506f2016-08-31 22:22:10 +0200819hi def link muttrcBindMenuListNL SpecialChar
820hi def link muttrcMacroDescrNL SpecialChar
821hi def link muttrcMacroBodyNL SpecialChar
822hi def link muttrcMacroKeyNL SpecialChar
823hi def link muttrcMacroMenuListNL SpecialChar
824hi def link muttrcColorMatchCountNL SpecialChar
825hi def link muttrcColorNL SpecialChar
826hi def link muttrcColorRXNL SpecialChar
827hi def link muttrcColorBGNL SpecialChar
828hi def link muttrcColorFGNL SpecialChar
829hi def link muttrcAliasNameNL SpecialChar
830hi def link muttrcAliasENNL SpecialChar
831hi def link muttrcAliasNL SpecialChar
832hi def link muttrcUnAliasNL SpecialChar
833hi def link muttrcAliasGroupDefNL SpecialChar
834hi def link muttrcAliasEncEmailNL SpecialChar
835hi def link muttrcPatternNL SpecialChar
836hi def link muttrcUnColorPatNL SpecialChar
837hi def link muttrcUnColorAPNL SpecialChar
838hi def link muttrcUnColorIndexNL SpecialChar
839hi def link muttrcStringNL SpecialChar
Bram Moolenaar9964e462007-05-05 17:54:07 +0000840
Bram Moolenaar071d4272004-06-13 20:20:40 +0000841
842let b:current_syntax = "muttrc"
843
Bram Moolenaarb8ff1fb2012-02-04 21:59:01 +0100844let &cpo = s:cpo_save
845unlet s:cpo_save
Bram Moolenaar446cb832008-06-24 21:56:24 +0000846"EOF vim: ts=8 noet tw=100 sw=8 sts=0 ft=vim