home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / runtime / dos / syntax / muttrc.vim < prev    next >
Encoding:
Text File  |  2012-05-31  |  80.0 KB  |  797 lines

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