Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 1 | " Vim syntax file |
| 2 | " Language: NeoMutt setup files |
Bram Moolenaar | 403f3eb | 2019-11-20 22:31:13 +0100 | [diff] [blame] | 3 | " Maintainer: Richard Russon <rich@flatcap.org> |
| 4 | " Previous Maintainer: Guillaume Brogi <gui-gui@netcourrier.com> |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 5 | " Last Change: 2022-04-08 |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 6 | " Original version based on syntax/muttrc.vim |
| 7 | |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 8 | " This file covers NeoMutt 2022-04-08 |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 9 | |
| 10 | " quit when a syntax file was already loaded |
| 11 | if exists("b:current_syntax") |
| 12 | finish |
| 13 | endif |
| 14 | |
| 15 | let s:cpo_save = &cpo |
| 16 | set cpo&vim |
| 17 | |
| 18 | " Set the keyword characters |
| 19 | setlocal isk=@,48-57,_,- |
| 20 | |
| 21 | " handling optional variables |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 22 | syntax match muttrcComment "^# .*$" contains=@Spell |
| 23 | syntax match muttrcComment "^#[^ ].*$" |
| 24 | syntax match muttrcComment "^#$" |
| 25 | syntax match muttrcComment "[^\\]#.*$"lc=1 |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 26 | |
| 27 | " Escape sequences (back-tick and pipe goes here too) |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 28 | syntax match muttrcEscape +\\[#tnr"'Cc ]+ |
| 29 | syntax match muttrcEscape +[`|]+ |
| 30 | syntax match muttrcEscape +\\$+ |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 31 | |
| 32 | " The variables takes the following arguments |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 33 | syntax region muttrcString contained keepend start=+"+ms=e skip=+\\"+ end=+"+ contains=muttrcEscape,muttrcCommand,muttrcAction,muttrcShellString |
| 34 | syntax region muttrcString contained keepend start=+'+ms=e skip=+\\'+ end=+'+ contains=muttrcEscape,muttrcCommand,muttrcAction |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 35 | syntax match muttrcStringNL contained skipwhite skipnl "\s*\\$" nextgroup=muttrcString,muttrcStringNL |
| 36 | |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 37 | syntax region muttrcShellString matchgroup=muttrcEscape keepend start=+`+ skip=+\\`+ end=+`+ contains=muttrcVarStr,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcCommand |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 38 | |
| 39 | syntax match muttrcRXChars contained /[^\\][][.*?+]\+/hs=s+1 |
| 40 | syntax match muttrcRXChars contained /[][|()][.*?+]*/ |
| 41 | syntax match muttrcRXChars contained /['"]^/ms=s+1 |
| 42 | syntax match muttrcRXChars contained /$['"]/me=e-1 |
| 43 | syntax match muttrcRXChars contained /\\/ |
| 44 | " Why does muttrcRXString2 work with one \ when muttrcRXString requires two? |
| 45 | syntax region muttrcRXString contained skipwhite start=+'+ skip=+\\'+ end=+'+ contains=muttrcRXChars |
| 46 | syntax region muttrcRXString contained skipwhite start=+"+ skip=+\\"+ end=+"+ contains=muttrcRXChars |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 47 | syntax region muttrcRXString contained skipwhite start=+[^ "'^]+ skip=+\\\s+ end=+\s+re=e-1 contains=muttrcRXChars |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 48 | " For some reason, skip refuses to match backslashes here... |
| 49 | syntax region muttrcRXString contained matchgroup=muttrcRXChars skipwhite start=+\^+ end=+[^\\]\s+re=e-1 contains=muttrcRXChars |
| 50 | syntax region muttrcRXString contained matchgroup=muttrcRXChars skipwhite start=+\^+ end=+$\s+ contains=muttrcRXChars |
| 51 | syntax region muttrcRXString2 contained skipwhite start=+'+ skip=+\'+ end=+'+ contains=muttrcRXChars |
| 52 | syntax region muttrcRXString2 contained skipwhite start=+"+ skip=+\"+ end=+"+ contains=muttrcRXChars |
| 53 | |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 54 | " these must be kept synchronized with muttrcRXString, but are intended for muttrcRXHooks |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 55 | syntax region muttrcRXHookString contained keepend skipwhite start=+'+ skip=+\\'+ end=+'+ contains=muttrcRXString nextgroup=muttrcString,muttrcStringNL |
| 56 | syntax region muttrcRXHookString contained keepend skipwhite start=+"+ skip=+\\"+ end=+"+ contains=muttrcRXString nextgroup=muttrcString,muttrcStringNL |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 57 | syntax region muttrcRXHookString contained keepend skipwhite start=+[^ "'^]+ skip=+\\\s+ end=+\s+re=e-1 contains=muttrcRXString nextgroup=muttrcString,muttrcStringNL |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 58 | syntax region muttrcRXHookString contained keepend skipwhite start=+\^+ end=+[^\\]\s+re=e-1 contains=muttrcRXString nextgroup=muttrcString,muttrcStringNL |
| 59 | syntax region muttrcRXHookString contained keepend matchgroup=muttrcRXChars skipwhite start=+\^+ end=+$\s+ contains=muttrcRXString nextgroup=muttrcString,muttrcStringNL |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 60 | syntax match muttrcRXHookStringNL contained skipwhite skipnl "\s*\\$" nextgroup=muttrcRXHookString,muttrcRXHookStringNL |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 61 | |
| 62 | " these are exclusively for args lists (e.g. -rx pat pat pat ...) |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 63 | syntax region muttrcRXPat contained keepend skipwhite start=+'+ skip=+\\'+ end=+'\s*+ contains=muttrcRXString nextgroup=muttrcRXPat |
| 64 | syntax region muttrcRXPat contained keepend skipwhite start=+"+ skip=+\\"+ end=+"\s*+ contains=muttrcRXString nextgroup=muttrcRXPat |
| 65 | syntax match muttrcRXPat contained /[^-'"#!]\S\+/ skipwhite contains=muttrcRXChars nextgroup=muttrcRXPat |
| 66 | syntax match muttrcRXDef contained "-rx\s\+" skipwhite nextgroup=muttrcRXPat |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 67 | |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 68 | syntax match muttrcSpecial +\(['"]\)!\1+ |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 69 | |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 70 | syntax match muttrcSetStrAssignment contained skipwhite /=\s*\%(\\\?\$\)\?[0-9A-Za-z_-]\+/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr contains=muttrcVariable,muttrcEscapedVariable |
| 71 | syntax region muttrcSetStrAssignment contained skipwhite keepend start=+=\s*"+hs=s+1 end=+"+ skip=+\\"+ nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr contains=muttrcString |
| 72 | syntax region muttrcSetStrAssignment contained skipwhite keepend start=+=\s*'+hs=s+1 end=+'+ skip=+\\'+ nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr contains=muttrcString |
| 73 | syntax match muttrcSetBoolAssignment contained skipwhite /=\s*\\\?\$\w\+/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr contains=muttrcVariable,muttrcEscapedVariable |
| 74 | syntax match muttrcSetBoolAssignment contained skipwhite /=\s*\%(yes\|no\)/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 75 | syntax match muttrcSetBoolAssignment contained skipwhite /=\s*"\%(yes\|no\)"/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 76 | syntax match muttrcSetBoolAssignment contained skipwhite /=\s*'\%(yes\|no\)'/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 77 | syntax match muttrcSetQuadAssignment contained skipwhite /=\s*\\\?\$\w\+/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr contains=muttrcVariable,muttrcEscapedVariable |
| 78 | syntax match muttrcSetQuadAssignment contained skipwhite /=\s*\%(ask-\)\?\%(yes\|no\)/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 79 | syntax match muttrcSetQuadAssignment contained skipwhite /=\s*"\%(ask-\)\?\%(yes\|no\)"/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 80 | syntax match muttrcSetQuadAssignment contained skipwhite /=\s*'\%(ask-\)\?\%(yes\|no\)'/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 81 | syntax match muttrcSetNumAssignment contained skipwhite /=\s*\\\?\$\w\+/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr contains=muttrcVariable,muttrcEscapedVariable |
| 82 | syntax match muttrcSetNumAssignment contained skipwhite /=\s*\d\+/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 83 | syntax match muttrcSetNumAssignment contained skipwhite /=\s*"\d\+"/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 84 | syntax match muttrcSetNumAssignment contained skipwhite /=\s*'\d\+'/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 85 | |
| 86 | " Now catch some email addresses and headers (purified version from mail.vim) |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 87 | syntax match muttrcEmail "[a-zA-Z0-9._-]\+@[a-zA-Z0-9./-]\+" |
| 88 | syntax match muttrcHeader "\<\c\%(From\|To\|C[Cc]\|B[Cc][Cc]\|Reply-To\|Subject\|Return-Path\|Received\|Date\|Replied\|Attach\)\>:\=" |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 89 | |
| 90 | syntax match muttrcKeySpecial contained +\%(\\[Cc'"]\|\^\|\\[01]\d\{2}\)+ |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 91 | syntax match muttrcKey contained "\S\+" contains=muttrcKeySpecial,muttrcKeyName |
| 92 | syntax region muttrcKey contained start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=muttrcKeySpecial,muttrcKeyName |
| 93 | syntax region muttrcKey contained start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=muttrcKeySpecial,muttrcKeyName |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 94 | syntax match muttrcKeyName contained "\\[trne]" |
| 95 | syntax match muttrcKeyName contained "\c<\%(BackSpace\|BackTab\|Delete\|Down\|End\|Enter\|Esc\|Home\|Insert\|Left\|Next\|PageDown\|PageUp\|Return\|Right\|Space\|Tab\|Up\)>" |
| 96 | syntax match muttrcKeyName contained "\c<F\d\+>" |
| 97 | |
| 98 | syntax match muttrcFormatErrors contained /%./ |
| 99 | |
| 100 | syntax match muttrcStrftimeEscapes contained /%[AaBbCcDdeFGgHhIjklMmnpRrSsTtUuVvWwXxYyZz+%]/ |
| 101 | syntax match muttrcStrftimeEscapes contained /%E[cCxXyY]/ |
| 102 | syntax match muttrcStrftimeEscapes contained /%O[BdeHImMSuUVwWy]/ |
| 103 | |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 104 | syntax region muttrcAliasFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcAliasFormatEscapes,muttrcAliasFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 105 | syntax region muttrcAliasFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcAliasFormatEscapes,muttrcAliasFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 106 | syntax region muttrcAttachFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcAttachFormatEscapes,muttrcAttachFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 107 | syntax region muttrcAttachFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcAttachFormatEscapes,muttrcAttachFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 108 | syntax region muttrcComposeFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcComposeFormatEscapes,muttrcComposeFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 109 | syntax region muttrcComposeFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcComposeFormatEscapes,muttrcComposeFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 110 | syntax region muttrcFolderFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcFolderFormatEscapes,muttrcFolderFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 111 | syntax region muttrcFolderFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcFolderFormatEscapes,muttrcFolderFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 112 | syntax region muttrcGroupIndexFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcGroupIndexFormatEscapes,muttrcGroupIndexFormatConditionals,muttrcFormatErrors,muttrcTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 113 | syntax region muttrcGroupIndexFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcGroupIndexFormatEscapes,muttrcGroupIndexFormatConditionals,muttrcFormatErrors,muttrcTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 114 | syntax region muttrcIndexFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcIndexFormatEscapes,muttrcIndexFormatConditionals,muttrcFormatErrors,muttrcTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 115 | syntax region muttrcIndexFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcIndexFormatEscapes,muttrcIndexFormatConditionals,muttrcFormatErrors,muttrcTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 116 | syntax region muttrcMixFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcMixFormatEscapes,muttrcMixFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 117 | syntax region muttrcMixFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcMixFormatEscapes,muttrcMixFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 118 | syntax region muttrcPatternFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcPatternFormatEscapes,muttrcPatternFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 119 | syntax region muttrcPatternFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcPatternFormatEscapes,muttrcPatternFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 120 | syntax region muttrcPGPCmdFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcPGPCmdFormatEscapes,muttrcPGPCmdFormatConditionals,muttrcVariable,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 121 | syntax region muttrcPGPCmdFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcPGPCmdFormatEscapes,muttrcPGPCmdFormatConditionals,muttrcVariable,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 122 | syntax region muttrcPGPFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcPGPFormatEscapes,muttrcPGPFormatConditionals,muttrcFormatErrors,muttrcPGPTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 123 | syntax region muttrcPGPFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcPGPFormatEscapes,muttrcPGPFormatConditionals,muttrcFormatErrors,muttrcPGPTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 124 | syntax region muttrcQueryFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcQueryFormatEscapes,muttrcQueryFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 125 | syntax region muttrcQueryFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcQueryFormatEscapes,muttrcQueryFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 126 | syntax region muttrcSidebarFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcSidebarFormatEscapes,muttrcSidebarFormatConditionals,muttrcFormatErrors,muttrcTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 127 | syntax region muttrcSidebarFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcSidebarFormatEscapes,muttrcSidebarFormatConditionals,muttrcFormatErrors,muttrcTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 128 | syntax region muttrcSmimeFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcSmimeFormatEscapes,muttrcSmimeFormatConditionals,muttrcVariable,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 129 | syntax region muttrcSmimeFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcSmimeFormatEscapes,muttrcSmimeFormatConditionals,muttrcVariable,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 130 | syntax region muttrcStatusFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcStatusFormatEscapes,muttrcStatusFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 131 | syntax region muttrcStatusFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcStatusFormatEscapes,muttrcStatusFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 132 | syntax region muttrcStrftimeFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcStrftimeEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 133 | syntax region muttrcStrftimeFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcStrftimeEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 134 | |
| 135 | " Format escapes and conditionals |
| 136 | syntax match muttrcFormatConditionals2 contained /[^?]*?/ |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 137 | function! s:escapesConditionals(baseName, sequence, padding, conditional) |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 138 | exec 'syntax match muttrc' . a:baseName . 'Escapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?\%(' . a:sequence . '\|%\)/' |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 139 | if a:padding |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 140 | exec 'syntax match muttrc' . a:baseName . 'Escapes contained /%[>|*]./' |
| 141 | endif |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 142 | if a:conditional |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 143 | exec 'syntax match muttrc' . a:baseName . 'Conditionals contained /%?\%(' . a:sequence . '\)?/ nextgroup=muttrcFormatConditionals2' |
| 144 | else |
| 145 | exec 'syntax match muttrc' . a:baseName . 'Conditionals contained /%?\%(' . a:sequence . '\)?/' |
| 146 | endif |
| 147 | endfunction |
| 148 | |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 149 | " CHECKED 2022-04-08 |
| 150 | " Ref: alias_format_str() in alias/dlg_alias.c |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 151 | call s:escapesConditionals('AliasFormat', '[acfnrt]', 1, 0) |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 152 | " Ref: attach_format_str() in attach/dlg_attach.c |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 153 | call s:escapesConditionals('AttachFormat', '[CcDdeFfIMmnQsTtuX]', 1, 1) |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 154 | " Ref: compose_format_str() in compose/cbar.c |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 155 | call s:escapesConditionals('ComposeFormat', '[ahlv]', 1, 1) |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 156 | " Ref: folder_format_str() in browser/browser.c |
Bram Moolenaar | 403f3eb | 2019-11-20 22:31:13 +0100 | [diff] [blame] | 157 | call s:escapesConditionals('FolderFormat', '[CDdFfgilmNnstu]', 1, 0) |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 158 | " Ref: group_index_format_str() in nntp/browse.c |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 159 | call s:escapesConditionals('GroupIndexFormat', '[CdfMNns]', 1, 1) |
| 160 | " Ref: index_format_str() in hdrline.c |
| 161 | call s:escapesConditionals('IndexFormat', '[AaBbCDdEefgHIiJKLlMmNnOPqRrSsTtuvWXxYyZ(<[{]\|@\i\+@\|G[a-zA-Z]\+\|Fp\=\|z[cst]\|cr\=', 1, 1) |
Bram Moolenaar | 7dda86f | 2018-04-20 22:36:41 +0200 | [diff] [blame] | 162 | " Ref: mix_format_str() in remailer.c |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 163 | call s:escapesConditionals('MixFormat', '[acns]', 1, 0) |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 164 | " Ref: pattern_format_str() in pattern/dlg_pattern.c |
| 165 | call s:escapesConditionals('PatternFormat', '[den]', 1, 0) |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 166 | " Ref: pgp_command_format_str() in ncrypt/pgpinvoke.c |
| 167 | call s:escapesConditionals('PGPCmdFormat', '[afprs]', 0, 1) |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 168 | " Ref: crypt_format_str() in ncrypt/dlg_gpgme.c |
| 169 | " Ref: pgp_entry_format_str() in ncrypt/dlg_pgp.c |
Bram Moolenaar | 7dda86f | 2018-04-20 22:36:41 +0200 | [diff] [blame] | 170 | " Note: crypt_format_str() supports 'p', but pgp_entry_fmt() does not |
Bram Moolenaar | 403f3eb | 2019-11-20 22:31:13 +0100 | [diff] [blame] | 171 | call s:escapesConditionals('PGPFormat', '[AaCcFfKkLlnptu[]', 0, 0) |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 172 | " Ref: query_format_str() in alias/dlg_query.c |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 173 | call s:escapesConditionals('QueryFormat', '[acent]', 1, 1) |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 174 | " Ref: sidebar_format_str() in sidebar/window.c |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 175 | call s:escapesConditionals('SidebarFormat', '[!BDdFLNnorStZ]', 1, 1) |
| 176 | " Ref: smime_command_format_str() in ncrypt/smime.c |
| 177 | call s:escapesConditionals('SmimeFormat', '[aCcdfiks]', 0, 1) |
| 178 | " Ref: status_format_str() in status.c |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 179 | call s:escapesConditionals('StatusFormat', '[bDdFfhLlMmnoPpRrSsTtuVv]', 1, 1) |
Bram Moolenaar | 7dda86f | 2018-04-20 22:36:41 +0200 | [diff] [blame] | 180 | |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 181 | syntax region muttrcPGPTimeEscapes contained start=+%\[+ end=+\]+ contains=muttrcStrftimeEscapes |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 182 | syntax region muttrcTimeEscapes contained start=+%(+ end=+)+ contains=muttrcStrftimeEscapes |
| 183 | syntax region muttrcTimeEscapes contained start=+%<+ end=+>+ contains=muttrcStrftimeEscapes |
| 184 | syntax region muttrcTimeEscapes contained start=+%\[+ end=+\]+ contains=muttrcStrftimeEscapes |
| 185 | syntax region muttrcTimeEscapes contained start=+%{+ end=+}+ contains=muttrcStrftimeEscapes |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 186 | |
Bram Moolenaar | 7dda86f | 2018-04-20 22:36:41 +0200 | [diff] [blame] | 187 | syntax match muttrcVarEqualsAliasFmt contained skipwhite "=" nextgroup=muttrcAliasFormatStr |
| 188 | syntax match muttrcVarEqualsAttachFmt contained skipwhite "=" nextgroup=muttrcAttachFormatStr |
| 189 | syntax match muttrcVarEqualsComposeFmt contained skipwhite "=" nextgroup=muttrcComposeFormatStr |
| 190 | syntax match muttrcVarEqualsFolderFmt contained skipwhite "=" nextgroup=muttrcFolderFormatStr |
| 191 | syntax match muttrcVarEqualsGrpIdxFmt contained skipwhite "=" nextgroup=muttrcGroupIndexFormatStr |
| 192 | syntax match muttrcVarEqualsIdxFmt contained skipwhite "=" nextgroup=muttrcIndexFormatStr |
| 193 | syntax match muttrcVarEqualsMixFmt contained skipwhite "=" nextgroup=muttrcMixFormatStr |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 194 | syntax match muttrcVarEqualsPatternFmt contained skipwhite "=" nextgroup=muttrcPatternFormatStr |
Bram Moolenaar | 7dda86f | 2018-04-20 22:36:41 +0200 | [diff] [blame] | 195 | syntax match muttrcVarEqualsPGPCmdFmt contained skipwhite "=" nextgroup=muttrcPGPCmdFormatStr |
| 196 | syntax match muttrcVarEqualsPGPFmt contained skipwhite "=" nextgroup=muttrcPGPFormatStr |
Bram Moolenaar | 7dda86f | 2018-04-20 22:36:41 +0200 | [diff] [blame] | 197 | syntax match muttrcVarEqualsQueryFmt contained skipwhite "=" nextgroup=muttrcQueryFormatStr |
| 198 | syntax match muttrcVarEqualsSdbFmt contained skipwhite "=" nextgroup=muttrcSidebarFormatStr |
| 199 | syntax match muttrcVarEqualsSmimeFmt contained skipwhite "=" nextgroup=muttrcSmimeFormatStr |
| 200 | syntax match muttrcVarEqualsStatusFmt contained skipwhite "=" nextgroup=muttrcStatusFormatStr |
| 201 | syntax match muttrcVarEqualsStrftimeFmt contained skipwhite "=" nextgroup=muttrcStrftimeFormatStr |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 202 | |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 203 | syntax match muttrcVPrefix contained /[?&]/ nextgroup=muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 204 | |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 205 | " CHECKED 2022-04-08 |
| 206 | " List of the different screens in NeoMutt (see MenuNames in menu/type.c) |
| 207 | syntax keyword muttrcMenu contained alias attach autocrypt browser compose editor generic index key_select_pgp key_select_smime mix pager pgp postpone query smime |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 208 | syntax match muttrcMenuList "\S\+" contained contains=muttrcMenu |
| 209 | syntax match muttrcMenuCommas /,/ contained |
| 210 | |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 211 | syntax region muttrcSpamPattern contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcPattern nextgroup=muttrcString,muttrcStringNL |
| 212 | syntax region muttrcSpamPattern contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcPattern nextgroup=muttrcString,muttrcStringNL |
| 213 | |
| 214 | syntax region muttrcNoSpamPattern contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcPattern |
| 215 | syntax region muttrcNoSpamPattern contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcPattern |
| 216 | |
| 217 | syntax match muttrcAttachmentsMimeType contained "[*a-z0-9_-]\+/[*a-z0-9._-]\+\s*" skipwhite nextgroup=muttrcAttachmentsMimeType |
| 218 | syntax match muttrcAttachmentsFlag contained "[+-]\%([AI]\|inline\|attachment\)\s\+" skipwhite nextgroup=muttrcAttachmentsMimeType |
| 219 | syntax match muttrcAttachmentsLine "^\s*\%(un\)\?attachments\s\+" skipwhite nextgroup=muttrcAttachmentsFlag |
| 220 | |
| 221 | syntax match muttrcUnHighlightSpace contained "\%(\s\+\|\\$\)" |
| 222 | |
| 223 | syntax keyword muttrcAsterisk contained * |
Bram Moolenaar | 403f3eb | 2019-11-20 22:31:13 +0100 | [diff] [blame] | 224 | |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 225 | syntax keyword muttrcListsKeyword lists skipwhite nextgroup=muttrcGroupDef,muttrcComment |
| 226 | syntax keyword muttrcListsKeyword unlists skipwhite nextgroup=muttrcAsterisk,muttrcComment |
| 227 | |
Bram Moolenaar | 403f3eb | 2019-11-20 22:31:13 +0100 | [diff] [blame] | 228 | syntax keyword muttrcSubscribeKeyword subscribe skipwhite nextgroup=muttrcGroupDef,muttrcComment |
| 229 | syntax keyword muttrcSubscribeKeyword unsubscribe skipwhite nextgroup=muttrcAsterisk,muttrcComment |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 230 | |
| 231 | syntax keyword muttrcAlternateKeyword contained alternates unalternates |
| 232 | syntax region muttrcAlternatesLine keepend start=+^\s*\%(un\)\?alternates\s+ skip=+\\$+ end=+$+ contains=muttrcAlternateKeyword,muttrcGroupDef,muttrcRXPat,muttrcUnHighlightSpace,muttrcComment |
| 233 | |
Bram Moolenaar | 403f3eb | 2019-11-20 22:31:13 +0100 | [diff] [blame] | 234 | " muttrcVariable includes a prefix because partial strings are considered valid. |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 235 | syntax match muttrcVariable contained "\\\@<![a-zA-Z_-]*\$[a-zA-Z_-]\+" contains=muttrcVariableInner |
| 236 | syntax match muttrcVariableInner contained "\$[a-zA-Z_-]\+" |
| 237 | syntax match muttrcEscapedVariable contained "\\\$[a-zA-Z_-]\+" |
| 238 | |
| 239 | syntax match muttrcBadAction contained "[^<>]\+" contains=muttrcEmail |
| 240 | syntax match muttrcAction contained "<[^>]\{-}>" contains=muttrcBadAction,muttrcFunction,muttrcKeyName |
| 241 | |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 242 | " CHECKED 2022-04-08 |
| 243 | " First, hooks that take regular expressions: |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 244 | syntax match muttrcRXHookNot contained /!\s*/ skipwhite nextgroup=muttrcRXHookString,muttrcRXHookStringNL |
| 245 | syntax match muttrcRXHooks /\<\%(account\|append\|close\|crypt\|folder\|mbox\|open\|pgp\)-hook\>/ skipwhite nextgroup=muttrcRXHookNot,muttrcRXHookString,muttrcRXHookStringNL |
| 246 | |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 247 | " Now, hooks that take patterns |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 248 | syntax match muttrcPatHookNot contained /!\s*/ skipwhite nextgroup=muttrcPattern |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 249 | syntax match muttrcPatHooks /\<\%(charset\|iconv\|index-format\)-hook\>/ skipwhite nextgroup=muttrcPatHookNot,muttrcPattern |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 250 | syntax match muttrcPatHooks /\<\%(message\|reply\|send\|send2\|save\|fcc\|fcc-save\)-hook\>/ skipwhite nextgroup=muttrcPatHookNot,muttrcOptPattern |
| 251 | |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 252 | " Global hooks that take a command |
| 253 | syntax keyword muttrcHooks skipwhite shutdown-hook startup-hook timeout-hook nextgroup=muttrcCommand |
| 254 | |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 255 | syntax match muttrcBindFunction contained /\S\+\>/ skipwhite contains=muttrcFunction |
| 256 | syntax match muttrcBindFunctionNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcBindFunction,muttrcBindFunctionNL |
| 257 | syntax match muttrcBindKey contained /\S\+/ skipwhite contains=muttrcKey nextgroup=muttrcBindFunction,muttrcBindFunctionNL |
| 258 | syntax match muttrcBindKeyNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcBindKey,muttrcBindKeyNL |
| 259 | syntax match muttrcBindMenuList contained /\S\+/ skipwhite contains=muttrcMenu,muttrcMenuCommas nextgroup=muttrcBindKey,muttrcBindKeyNL |
| 260 | syntax match muttrcBindMenuListNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcBindMenuList,muttrcBindMenuListNL |
| 261 | |
| 262 | syntax region muttrcMacroDescr contained keepend skipwhite start=+\s*\S+ms=e skip=+\\ + end=+ \|$+me=s |
| 263 | syntax region muttrcMacroDescr contained keepend skipwhite start=+'+ms=e skip=+\\'+ end=+'+me=s |
| 264 | syntax region muttrcMacroDescr contained keepend skipwhite start=+"+ms=e skip=+\\"+ end=+"+me=s |
| 265 | syntax match muttrcMacroDescrNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcMacroDescr,muttrcMacroDescrNL |
| 266 | syntax region muttrcMacroBody contained skipwhite start="\S" skip='\\ \|\\$' end=' \|$' contains=muttrcEscape,muttrcSet,muttrcUnset,muttrcReset,muttrcToggle,muttrcCommand,muttrcAction nextgroup=muttrcMacroDescr,muttrcMacroDescrNL |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 267 | syntax 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 |
| 268 | syntax region muttrcMacroBody matchgroup=Type contained skipwhite start=+"+ms=e skip=+\\"+ end=+"\|\%(\%(\\\\\)\@<!$\)+me=s contains=muttrcEscape,muttrcSet,muttrcUnset,muttrcReset,muttrcToggle,muttrcSpam,muttrcNoSpam,muttrcCommand,muttrcAction,muttrcVariable nextgroup=muttrcMacroDescr,muttrcMacroDescrNL |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 269 | syntax match muttrcMacroBodyNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcMacroBody,muttrcMacroBodyNL |
| 270 | syntax match muttrcMacroKey contained /\S\+/ skipwhite contains=muttrcKey nextgroup=muttrcMacroBody,muttrcMacroBodyNL |
| 271 | syntax match muttrcMacroKeyNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcMacroKey,muttrcMacroKeyNL |
| 272 | syntax match muttrcMacroMenuList contained /\S\+/ skipwhite contains=muttrcMenu,muttrcMenuCommas nextgroup=muttrcMacroKey,muttrcMacroKeyNL |
| 273 | syntax match muttrcMacroMenuListNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcMacroMenuList,muttrcMacroMenuListNL |
| 274 | |
| 275 | syntax match muttrcAddrContent contained "[a-zA-Z0-9._-]\+@[a-zA-Z0-9./-]\+\s*" skipwhite contains=muttrcEmail nextgroup=muttrcAddrContent |
| 276 | syntax region muttrcAddrContent contained start=+'+ end=+'\s*+ skip=+\\'+ skipwhite contains=muttrcEmail nextgroup=muttrcAddrContent |
| 277 | syntax region muttrcAddrContent contained start=+"+ end=+"\s*+ skip=+\\"+ skipwhite contains=muttrcEmail nextgroup=muttrcAddrContent |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 278 | syntax match muttrcAddrDef contained "-addr\s\+" skipwhite nextgroup=muttrcAddrContent |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 279 | |
| 280 | syntax match muttrcGroupFlag contained "-group" |
| 281 | syntax region muttrcGroupDef contained start="-group\s\+" skip="\\$" end="\s" skipwhite keepend contains=muttrcGroupFlag,muttrcUnHighlightSpace |
| 282 | |
| 283 | syntax keyword muttrcGroupKeyword contained group ungroup |
| 284 | syntax region muttrcGroupLine keepend start=+^\s*\%(un\)\?group\s+ skip=+\\$+ end=+$+ contains=muttrcGroupKeyword,muttrcGroupDef,muttrcAddrDef,muttrcRXDef,muttrcUnHighlightSpace,muttrcComment |
| 285 | |
| 286 | syntax match muttrcAliasGroupName contained /\w\+/ skipwhite nextgroup=muttrcAliasGroupDef,muttrcAliasKey,muttrcAliasNL |
| 287 | syntax match muttrcAliasGroupDefNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasGroupName,muttrcAliasGroupDefNL |
| 288 | syntax match muttrcAliasGroupDef contained /\s*-group/ skipwhite nextgroup=muttrcAliasGroupName,muttrcAliasGroupDefNL contains=muttrcGroupFlag |
| 289 | syntax match muttrcAliasComma contained /,/ skipwhite nextgroup=muttrcAliasEmail,muttrcAliasEncEmail,muttrcAliasNameNoParens,muttrcAliasENNL |
| 290 | syntax match muttrcAliasEmail contained /\S\+@\S\+/ contains=muttrcEmail nextgroup=muttrcAliasName,muttrcAliasNameNL skipwhite |
| 291 | syntax match muttrcAliasEncEmail contained /<[^>]\+>/ contains=muttrcEmail nextgroup=muttrcAliasComma |
| 292 | syntax match muttrcAliasEncEmailNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasEncEmail,muttrcAliasEncEmailNL |
| 293 | syntax match muttrcAliasNameNoParens contained /[^<(@]\+\s\+/ nextgroup=muttrcAliasEncEmail,muttrcAliasEncEmailNL |
| 294 | syntax region muttrcAliasName contained matchgroup=Type start=/(/ end=/)/ skipwhite |
| 295 | syntax match muttrcAliasNameNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasName,muttrcAliasNameNL |
| 296 | syntax match muttrcAliasENNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasEmail,muttrcAliasEncEmail,muttrcAliasNameNoParens,muttrcAliasENNL |
| 297 | syntax match muttrcAliasKey contained /\s*[^- \t]\S\+/ skipwhite nextgroup=muttrcAliasEmail,muttrcAliasEncEmail,muttrcAliasNameNoParens,muttrcAliasENNL |
| 298 | syntax match muttrcAliasNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasGroupDef,muttrcAliasKey,muttrcAliasNL |
| 299 | |
| 300 | syntax match muttrcUnAliasKey contained "\s*\w\+\s*" skipwhite nextgroup=muttrcUnAliasKey,muttrcUnAliasNL |
| 301 | syntax match muttrcUnAliasNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcUnAliasKey,muttrcUnAliasNL |
| 302 | |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 303 | " CHECKED 2022-04-08 |
| 304 | " List of letters in Flags in pattern/flags.c |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 305 | " Parameter: none |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 306 | syntax match muttrcSimplePat contained "!\?\^\?[~][ADEFGgklNOPpQRSTUuVv#$=]" |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 307 | " Parameter: range |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 308 | syntax match muttrcSimplePat contained "!\?\^\?[~][mnXz]\s*\%([<>-][0-9]\+[kM]\?\|[0-9]\+[kM]\?[-]\%([0-9]\+[kM]\?\)\?\)" |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 309 | " Parameter: date |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 310 | syntax 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 |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 311 | " Parameter: regex |
| 312 | syntax match muttrcSimplePat contained "!\?\^\?[~][BbCcefHhIiLMstwxYy]\s*" nextgroup=muttrcSimplePatRXContainer |
| 313 | " Parameter: pattern |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 314 | syntax match muttrcSimplePat contained "!\?\^\?[%][BbCcefHhiLstxy]\s*" nextgroup=muttrcSimplePatString |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 315 | " Parameter: pattern |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 316 | syntax match muttrcSimplePat contained "!\?\^\?[=][bcCefhHiLstxy]\s*" nextgroup=muttrcSimplePatString |
| 317 | syntax region muttrcSimplePat contained keepend start=+!\?\^\?[~](+ end=+)+ contains=muttrcSimplePat |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 318 | |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 319 | "syn match muttrcSimplePat contained /'[^~=%][^']*/ contains=muttrcRXString |
| 320 | syntax region muttrcSimplePatString contained keepend start=+"+ end=+"+ skip=+\\"+ |
| 321 | syntax region muttrcSimplePatString contained keepend start=+'+ end=+'+ skip=+\\'+ |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 322 | syntax region muttrcSimplePatString contained keepend start=+[^ "']+ skip=+\\ + end=+\s+re=e-1 |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 323 | syntax region muttrcSimplePatRXContainer contained keepend start=+"+ end=+"+ skip=+\\"+ contains=muttrcRXString |
| 324 | syntax region muttrcSimplePatRXContainer contained keepend start=+'+ end=+'+ skip=+\\'+ contains=muttrcRXString |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 325 | syntax region muttrcSimplePatRXContainer contained keepend start=+[^ "']+ skip=+\\ + end=+\s+re=e-1 contains=muttrcRXString |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 326 | syntax match muttrcSimplePatMetas contained /[(|)]/ |
| 327 | |
| 328 | syntax match muttrcOptSimplePat contained skipwhite /[~=%!(^].*/ contains=muttrcSimplePat,muttrcSimplePatMetas |
| 329 | syntax match muttrcOptSimplePat contained skipwhite /[^~=%!(^].*/ contains=muttrcRXString |
| 330 | syntax region muttrcOptPattern contained matchgroup=Type keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcOptSimplePat,muttrcUnHighlightSpace nextgroup=muttrcString,muttrcStringNL |
| 331 | syntax region muttrcOptPattern contained matchgroup=Type keepend skipwhite start=+'+ skip=+\\'+ end=+'+ contains=muttrcOptSimplePat,muttrcUnHighlightSpace nextgroup=muttrcString,muttrcStringNL |
| 332 | syntax region muttrcOptPattern contained keepend skipwhite start=+[~](+ end=+)+ skip=+\\)+ contains=muttrcSimplePat nextgroup=muttrcString,muttrcStringNL |
| 333 | syntax match muttrcOptPattern contained skipwhite /[~][A-Za-z]/ contains=muttrcSimplePat nextgroup=muttrcString,muttrcStringNL |
| 334 | syntax match muttrcOptPattern contained skipwhite /[.]/ nextgroup=muttrcString,muttrcStringNL |
| 335 | " Keep muttrcPattern and muttrcOptPattern synchronized |
| 336 | syntax region muttrcPattern contained matchgroup=Type keepend skipwhite start=+"+ skip=+\\"+ end=+"+ contains=muttrcSimplePat,muttrcUnHighlightSpace,muttrcSimplePatMetas |
| 337 | syntax region muttrcPattern contained matchgroup=Type keepend skipwhite start=+'+ skip=+\\'+ end=+'+ contains=muttrcSimplePat,muttrcUnHighlightSpace,muttrcSimplePatMetas |
| 338 | syntax region muttrcPattern contained keepend skipwhite start=+[~](+ end=+)+ skip=+\\)+ contains=muttrcSimplePat |
| 339 | syntax match muttrcPattern contained skipwhite /[~][A-Za-z]/ contains=muttrcSimplePat |
| 340 | syntax match muttrcPattern contained skipwhite /[.]/ |
| 341 | syntax region muttrcPatternInner contained keepend start=+"[~=%!(^]+ms=s+1 skip=+\\"+ end=+"+me=e-1 contains=muttrcSimplePat,muttrcUnHighlightSpace,muttrcSimplePatMetas |
| 342 | syntax region muttrcPatternInner contained keepend start=+'[~=%!(^]+ms=s+1 skip=+\\'+ end=+'+me=e-1 contains=muttrcSimplePat,muttrcUnHighlightSpace,muttrcSimplePatMetas |
| 343 | |
| 344 | " Colour definitions takes object, foreground and background arguments (regexps excluded). |
| 345 | syntax match muttrcColorMatchCount contained "[0-9]\+" |
| 346 | syntax match muttrcColorMatchCountNL contained skipwhite skipnl "\s*\\$" nextgroup=muttrcColorMatchCount,muttrcColorMatchCountNL |
| 347 | syntax region muttrcColorRXPat contained start=+\s*'+ skip=+\\'+ end=+'\s*+ keepend skipwhite contains=muttrcRXString2 nextgroup=muttrcColorMatchCount,muttrcColorMatchCountNL |
| 348 | syntax region muttrcColorRXPat contained start=+\s*"+ skip=+\\"+ end=+"\s*+ keepend skipwhite contains=muttrcRXString2 nextgroup=muttrcColorMatchCount,muttrcColorMatchCountNL |
| 349 | syntax keyword muttrcColor contained black blue cyan default green magenta red white yellow |
| 350 | syntax keyword muttrcColor contained brightblack brightblue brightcyan brightdefault brightgreen brightmagenta brightred brightwhite brightyellow |
| 351 | syntax match muttrcColor contained "\<\%(bright\)\=color\d\{1,3}\>" |
| 352 | " Now for the structure of the color line |
| 353 | syntax match muttrcColorRXNL contained skipnl "\s*\\$" nextgroup=muttrcColorRXPat,muttrcColorRXNL |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 354 | syntax match muttrcColorBG contained /\s*[$]\?\w\+/ contains=muttrcColor,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcColorRXPat,muttrcColorRXNL |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 355 | syntax match muttrcColorBGNL contained skipnl "\s*\\$" nextgroup=muttrcColorBG,muttrcColorBGNL |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 356 | syntax match muttrcColorFG contained /\s*[$]\?\w\+/ contains=muttrcColor,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcColorBG,muttrcColorBGNL |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 357 | syntax match muttrcColorFGNL contained skipnl "\s*\\$" nextgroup=muttrcColorFG,muttrcColorFGNL |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 358 | syntax match muttrcColorContext contained /\s*[$]\?\w\+/ contains=muttrcColorField,muttrcVariable,muttrcUnHighlightSpace,muttrcColorCompose nextgroup=muttrcColorFG,muttrcColorFGNL |
| 359 | syntax match muttrcColorNL contained skipnl "\s*\\$" nextgroup=muttrcColorContext,muttrcColorNL,muttrcColorCompose |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 360 | syntax match muttrcColorKeyword contained /^\s*color\s\+/ nextgroup=muttrcColorContext,muttrcColorNL,muttrcColorCompose |
| 361 | " And now color's brother: |
| 362 | syntax region muttrcUnColorPatterns contained skipwhite start=+\s*'+ end=+'+ skip=+\\'+ contains=muttrcPattern nextgroup=muttrcUnColorPatterns,muttrcUnColorPatNL |
| 363 | syntax region muttrcUnColorPatterns contained skipwhite start=+\s*"+ end=+"+ skip=+\\"+ contains=muttrcPattern nextgroup=muttrcUnColorPatterns,muttrcUnColorPatNL |
| 364 | syntax match muttrcUnColorPatterns contained skipwhite /\s*[^'"\s]\S\*/ contains=muttrcPattern nextgroup=muttrcUnColorPatterns,muttrcUnColorPatNL |
| 365 | syntax match muttrcUnColorPatNL contained skipwhite skipnl /\s*\\$/ nextgroup=muttrcUnColorPatterns,muttrcUnColorPatNL |
| 366 | syntax match muttrcUnColorAll contained skipwhite /[*]/ |
| 367 | syntax match muttrcUnColorAPNL contained skipwhite skipnl /\s*\\$/ nextgroup=muttrcUnColorPatterns,muttrcUnColorAll,muttrcUnColorAPNL |
| 368 | syntax match muttrcUnColorIndex contained skipwhite /\s*index\s\+/ nextgroup=muttrcUnColorPatterns,muttrcUnColorAll,muttrcUnColorAPNL |
| 369 | syntax match muttrcUnColorIndexNL contained skipwhite skipnl /\s*\\$/ nextgroup=muttrcUnColorIndex,muttrcUnColorIndexNL |
| 370 | syntax match muttrcUnColorKeyword contained skipwhite /^\s*uncolor\s\+/ nextgroup=muttrcUnColorIndex,muttrcUnColorIndexNL |
| 371 | syntax region muttrcUnColorLine keepend start=+^\s*uncolor\s+ skip=+\\$+ end=+$+ contains=muttrcUnColorKeyword,muttrcComment,muttrcUnHighlightSpace |
| 372 | |
| 373 | syntax keyword muttrcMonoAttrib contained bold none normal reverse standout underline |
| 374 | syntax keyword muttrcMono contained mono skipwhite nextgroup=muttrcColorField,muttrcColorCompose |
| 375 | syntax match muttrcMonoLine "^\s*mono\s\+\S\+" skipwhite nextgroup=muttrcMonoAttrib contains=muttrcMono |
| 376 | |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 377 | " CHECKED 2022-04-08 |
| 378 | " List of fields in ColorFields in color/commmand.c |
Bram Moolenaar | 7dda86f | 2018-04-20 22:36:41 +0200 | [diff] [blame] | 379 | syntax keyword muttrcColorField skipwhite contained |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 380 | \ attachment attach_headers body bold error hdrdefault header index index_author |
| 381 | \ index_collapsed index_date index_flags index_label index_number index_size index_subject |
| 382 | \ index_tag index_tags indicator markers message normal options progress prompt quoted |
| 383 | \ search sidebar_divider sidebar_flagged sidebar_highlight sidebar_indicator sidebar_new |
| 384 | \ sidebar_ordinary sidebar_spoolfile sidebar_unread signature status tilde tree underline |
| 385 | \ warning nextgroup=muttrcColor |
| 386 | |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 387 | syntax match muttrcColorField contained "\<quoted\d\=\>" |
| 388 | |
| 389 | syntax match muttrcColorCompose skipwhite contained /\s*compose\s*/ nextgroup=muttrcColorComposeField |
Bram Moolenaar | 7dda86f | 2018-04-20 22:36:41 +0200 | [diff] [blame] | 390 | |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 391 | " CHECKED 2022-04-08 |
| 392 | " List of fields in ComposeColorFields in color/command.c |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 393 | syntax keyword muttrcColorComposeField skipwhite contained |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 394 | \ header security_both security_encrypt security_none security_sign |
| 395 | \ nextgroup=muttrcColorFG,muttrcColorFGNL |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 396 | syntax region muttrcColorLine keepend start=/^\s*color\s\+/ skip=+\\$+ end=+$+ contains=muttrcColorKeyword,muttrcComment,muttrcUnHighlightSpace |
| 397 | |
Bram Moolenaar | 7dda86f | 2018-04-20 22:36:41 +0200 | [diff] [blame] | 398 | function! s:boolQuadGen(type, vars, deprecated) |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 399 | let l:novars = copy(a:vars) |
| 400 | call map(l:novars, '"no" . v:val') |
| 401 | let l:invvars = copy(a:vars) |
| 402 | call map(l:invvars, '"inv" . v:val') |
| 403 | |
| 404 | let l:orig_type = copy(a:type) |
| 405 | if a:deprecated |
| 406 | let l:type = 'Deprecated' . a:type |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 407 | exec 'syntax keyword muttrcVar' . l:type . ' ' . join(a:vars) |
| 408 | exec 'syntax keyword muttrcVar' . l:type . ' ' . join(l:novars) |
| 409 | exec 'syntax keyword muttrcVar' . l:type . ' ' . join(l:invvars) |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 410 | else |
| 411 | let l:type = a:type |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 412 | exec 'syntax keyword muttrcVar' . l:type . ' skipwhite contained ' . join(a:vars) . ' nextgroup=muttrcSet' . l:orig_type . 'Assignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr' |
| 413 | exec 'syntax keyword muttrcVar' . l:type . ' skipwhite contained ' . join(l:novars) . ' nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr' |
| 414 | exec 'syntax keyword muttrcVar' . l:type . ' skipwhite contained ' . join(l:invvars) . ' nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr' |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 415 | endif |
| 416 | |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 417 | endfunction |
| 418 | |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 419 | " CHECKED 2022-04-08 |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 420 | " List of DT_BOOL in MuttVars in mutt_config.c |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 421 | call s:boolQuadGen('Bool', [ |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 422 | \ 'abort_backspace', 'allow_8bit', 'allow_ansi', 'arrow_cursor', 'ascii_chars', 'ask_bcc', |
| 423 | \ 'ask_cc', 'ask_follow_up', 'ask_x_comment_to', 'attach_save_without_prompting', |
| 424 | \ 'attach_split', 'autocrypt', 'autocrypt_reply', 'auto_edit', 'auto_subscribe', 'auto_tag', |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 425 | \ 'beep', 'beep_new', 'bounce_delivered', 'braille_friendly', |
| 426 | \ 'browser_abbreviate_mailboxes', 'change_folder_next', 'check_mbox_size', 'check_new', |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 427 | \ 'collapse_all', 'collapse_flagged', 'collapse_unread', 'compose_show_user_headers', |
| 428 | \ 'confirm_append', 'confirm_create', 'copy_decode_weed', 'count_alternatives', |
| 429 | \ 'crypt_auto_encrypt', 'crypt_auto_pgp', 'crypt_auto_sign', 'crypt_auto_smime', |
| 430 | \ 'crypt_confirm_hook', 'crypt_opportunistic_encrypt', |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 431 | \ 'crypt_opportunistic_encrypt_strong_keys', 'crypt_protected_headers_read', |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 432 | \ 'crypt_protected_headers_save', 'crypt_protected_headers_write', 'crypt_reply_encrypt', |
| 433 | \ 'crypt_reply_sign', 'crypt_reply_sign_encrypted', 'crypt_timestamp', 'crypt_use_gpgme', |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 434 | \ 'crypt_use_pka', 'delete_untag', 'digest_collapse', 'duplicate_threads', 'edit_headers', |
| 435 | \ 'encode_from', 'fast_reply', 'fcc_before_send', 'fcc_clear', 'flag_safe', 'followup_to', |
| 436 | \ 'force_name', 'forward_decode', 'forward_decrypt', 'forward_quote', 'forward_references', |
| 437 | \ 'hdrs', 'header', 'header_color_partial', 'help', 'hidden_host', 'hide_limited', |
| 438 | \ 'hide_missing', 'hide_thread_subject', 'hide_top_limited', 'hide_top_missing', |
| 439 | \ 'history_remove_dups', 'honor_disposition', 'idn_decode', 'idn_encode', |
| 440 | \ 'ignore_list_reply_to', 'imap_check_subscribed', 'imap_condstore', 'imap_deflate', |
| 441 | \ 'imap_idle', 'imap_list_subscribed', 'imap_passive', 'imap_peek', 'imap_qresync', |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 442 | \ 'imap_rfc5161', 'imap_server_noise', 'implicit_autoview', 'include_encrypted', |
| 443 | \ 'include_only_first', 'keep_flagged', 'local_date_header', 'mailcap_sanitize', |
| 444 | \ 'maildir_check_cur', 'maildir_header_cache_verify', 'maildir_trash', 'mail_check_recent', |
| 445 | \ 'mail_check_stats', 'markers', 'mark_old', 'menu_move_off', 'menu_scroll', |
| 446 | \ 'message_cache_clean', 'meta_key', 'me_too', 'mh_purge', 'mime_forward_decode', |
| 447 | \ 'mime_type_query_first', 'narrow_tree', 'nm_query_window_enable', 'nm_record', |
| 448 | \ 'nntp_listgroup', 'nntp_load_description', 'pager_stop', 'pgp_auto_decode', |
| 449 | \ 'pgp_auto_inline', 'pgp_check_exit', 'pgp_check_gpg_decrypt_status_fd', |
| 450 | \ 'pgp_ignore_subkeys', 'pgp_long_ids', 'pgp_reply_inline', 'pgp_retainable_sigs', |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 451 | \ 'pgp_self_encrypt', 'pgp_show_unusable', 'pgp_strict_enc', 'pgp_use_gpg_agent', |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 452 | \ 'pipe_decode', 'pipe_decode_weed', 'pipe_split', 'pop_auth_try_all', 'pop_last', |
| 453 | \ 'postpone_encrypt', 'print_decode', 'print_decode_weed', 'print_split', 'prompt_after', |
| 454 | \ 'read_only', 'reflow_space_quotes', 'reflow_text', 'reply_self', 'reply_with_xorig', |
| 455 | \ 'resolve', 'resume_draft_files', 'resume_edited_draft_files', 'reverse_alias', |
| 456 | \ 'reverse_name', 'reverse_real_name', 'rfc2047_parameters', 'save_address', 'save_empty', |
| 457 | \ 'save_name', 'save_unsubscribed', 'score', 'show_new_news', 'show_only_unread', |
| 458 | \ 'sidebar_folder_indent', 'sidebar_new_mail_only', 'sidebar_next_new_wrap', |
| 459 | \ 'sidebar_non_empty_mailbox_only', 'sidebar_on_right', 'sidebar_short_path', |
| 460 | \ 'sidebar_visible', 'sig_dashes', 'sig_on_top', 'size_show_bytes', 'size_show_fractions', |
| 461 | \ 'size_show_mb', 'size_units_on_left', 'smart_wrap', 'smime_ask_cert_label', |
| 462 | \ 'smime_decrypt_use_default_key', 'smime_is_default', 'smime_self_encrypt', 'sort_re', |
| 463 | \ 'ssl_force_tls', 'ssl_use_sslv2', 'ssl_use_sslv3', 'ssl_use_system_certs', |
| 464 | \ 'ssl_use_tlsv1', 'ssl_use_tlsv1_1', 'ssl_use_tlsv1_2', 'ssl_use_tlsv1_3', |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 465 | \ 'ssl_verify_dates', 'ssl_verify_host', 'ssl_verify_partial_chains', 'status_on_top', |
| 466 | \ 'strict_threads', 'suspend', 'text_flowed', 'thorough_search', 'thread_received', 'tilde', |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 467 | \ 'ts_enabled', 'tunnel_is_secure', 'uncollapse_jump', 'uncollapse_new', 'user_agent', |
| 468 | \ 'use_8bit_mime', 'use_domain', 'use_envelope_from', 'use_from', 'use_ipv6', |
| 469 | \ 'virtual_spool_file', 'wait_key', 'weed', 'wrap_search', 'write_bcc', 'x_comment_to' |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 470 | \ ], 0) |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 471 | |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 472 | " CHECKED 2022-04-08 |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 473 | " Deprecated Bools |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 474 | " List of DT_SYNONYM or DT_DEPRECATED Bools in MuttVars in mutt_config.c |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 475 | call s:boolQuadGen('Bool', [ |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 476 | \ 'askbcc', 'askcc', 'autoedit', 'confirmappend', 'confirmcreate', 'crypt_autoencrypt', |
| 477 | \ 'crypt_autopgp', 'crypt_autosign', 'crypt_autosmime', 'crypt_confirmhook', |
| 478 | \ 'crypt_replyencrypt', 'crypt_replysign', 'crypt_replysignencrypted', 'edit_hdrs', |
| 479 | \ 'envelope_from', 'forw_decode', 'forw_decrypt', 'forw_quote', 'header_cache_compress', |
| 480 | \ 'ignore_linear_white_space', 'imap_servernoise', 'include_onlyfirst', 'metoo', |
| 481 | \ 'mime_subject', 'pgp_autoencrypt', 'pgp_autoinline', 'pgp_autosign', |
| 482 | \ 'pgp_auto_traditional', 'pgp_create_traditional', 'pgp_replyencrypt', 'pgp_replyinline', |
| 483 | \ 'pgp_replysign', 'pgp_replysignencrypted', 'reverse_realname', 'ssl_usesystemcerts', |
| 484 | \ 'use_8bitmime', 'virtual_spoolfile', 'xterm_set_titles' |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 485 | \ ], 1) |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 486 | |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 487 | " CHECKED 2022-04-08 |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 488 | " List of DT_QUAD in MuttVars in mutt_config.c |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 489 | call s:boolQuadGen('Quad', [ |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 490 | \ 'abort_noattach', 'abort_nosubject', 'abort_unmodified', 'bounce', 'catchup_newsgroup', |
| 491 | \ 'copy', 'crypt_verify_sig', 'delete', 'fcc_attach', 'followup_to_poster', |
| 492 | \ 'forward_attachments', 'forward_edit', 'honor_followup_to', 'include', 'mime_forward', |
| 493 | \ 'mime_forward_rest', 'move', 'pgp_mime_auto', 'pop_delete', 'pop_reconnect', 'postpone', |
| 494 | \ 'post_moderated', 'print', 'quit', 'recall', 'reply_to', 'ssl_starttls', |
| 495 | \ ], 0) |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 496 | |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 497 | " CHECKED 2022-04-08 |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 498 | " Deprecated Quads |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 499 | " List of DT_SYNONYM or DT_DEPRECATED Quads in MuttVars in mutt_config.c |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 500 | call s:boolQuadGen('Quad', [ |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 501 | \ 'mime_fwd', 'pgp_encrypt_self', 'pgp_verify_sig', 'smime_encrypt_self' |
| 502 | \ ], 1) |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 503 | |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 504 | " CHECKED 2022-04-08 |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 505 | " List of DT_NUMBER or DT_LONG in MuttVars in mutt_config.c |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 506 | syntax keyword muttrcVarNum skipwhite contained |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 507 | \ connect_timeout debug_level header_cache_compress_level history imap_fetch_chunk_size |
| 508 | \ imap_keepalive imap_pipeline_depth imap_poll_timeout mail_check mail_check_stats_interval |
| 509 | \ menu_context net_inc nm_db_limit nm_open_timeout nm_query_window_current_position |
| 510 | \ nm_query_window_duration nntp_context nntp_poll pager_context pager_index_lines |
| 511 | \ pager_read_delay pager_skip_quoted_context pgp_timeout pop_check_interval read_inc |
| 512 | \ reflow_wrap save_history score_threshold_delete score_threshold_flag score_threshold_read |
| 513 | \ search_context sendmail_wait sidebar_component_depth sidebar_width sleep_time |
| 514 | \ smime_timeout ssl_min_dh_prime_bits timeout time_inc toggle_quoted_show_levels wrap |
| 515 | \ wrap_headers write_inc |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 516 | \ nextgroup=muttrcSetNumAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 517 | " CHECKED 2022-04-08 |
| 518 | " Deprecated Numbers |
Bram Moolenaar | 7dda86f | 2018-04-20 22:36:41 +0200 | [diff] [blame] | 519 | syntax keyword muttrcVarDeprecatedNum contained skipwhite |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 520 | \ header_cache_pagesize pop_checkinterval skip_quoted_offset |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 521 | |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 522 | " CHECKED 2022-04-08 |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 523 | " List of DT_STRING in MuttVars in mutt_config.c |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 524 | " Special cases first, and all the rest at the end |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 525 | " Formats themselves must be updated in their respective groups |
| 526 | " See s:escapesConditionals |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 527 | syntax match muttrcVarStr contained skipwhite 'my_[a-zA-Z0-9_]\+' nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 528 | syntax keyword muttrcVarStr contained skipwhite alias_format nextgroup=muttrcVarEqualsAliasFmt |
| 529 | syntax keyword muttrcVarStr contained skipwhite attach_format nextgroup=muttrcVarEqualsAttachFmt |
| 530 | syntax keyword muttrcVarStr contained skipwhite compose_format nextgroup=muttrcVarEqualsComposeFmt |
| 531 | syntax keyword muttrcVarStr contained skipwhite folder_format vfolder_format nextgroup=muttrcVarEqualsFolderFmt |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 532 | syntax keyword muttrcVarStr contained skipwhite attribution forward_format index_format message_format pager_format nextgroup=muttrcVarEqualsIdxFmt |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 533 | syntax keyword muttrcVarStr contained skipwhite mix_entry_format nextgroup=muttrcVarEqualsMixFmt |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 534 | syntax keyword muttrcVarStr contained skipwhite pattern_format nextgroup=muttrcVarEqualsPatternFmt |
Bram Moolenaar | 7dda86f | 2018-04-20 22:36:41 +0200 | [diff] [blame] | 535 | syntax keyword muttrcVarStr contained skipwhite |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 536 | \ pgp_clear_sign_command pgp_decode_command pgp_decrypt_command pgp_encrypt_only_command |
| 537 | \ pgp_encrypt_sign_command pgp_export_command pgp_get_keys_command pgp_import_command |
| 538 | \ pgp_list_pubring_command pgp_list_secring_command pgp_sign_command pgp_verify_command |
| 539 | \ pgp_verify_key_command |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 540 | \ nextgroup=muttrcVarEqualsPGPCmdFmt |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 541 | syntax keyword muttrcVarStr contained skipwhite pgp_entry_format nextgroup=muttrcVarEqualsPGPFmt |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 542 | syntax keyword muttrcVarStr contained skipwhite query_format nextgroup=muttrcVarEqualsQueryFmt |
| 543 | syntax keyword muttrcVarStr contained skipwhite |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 544 | \ smime_decrypt_command smime_encrypt_command smime_get_cert_command |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 545 | \ smime_get_cert_email_command smime_get_signer_cert_command smime_import_cert_command |
| 546 | \ smime_pk7out_command smime_sign_command smime_verify_command smime_verify_opaque_command |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 547 | \ nextgroup=muttrcVarEqualsSmimeFmt |
| 548 | syntax keyword muttrcVarStr contained skipwhite status_format ts_icon_format ts_status_format nextgroup=muttrcVarEqualsStatusFmt |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 549 | syntax keyword muttrcVarStr contained skipwhite date_format nextgroup=muttrcVarEqualsStrftimeFmt |
Bram Moolenaar | 7dda86f | 2018-04-20 22:36:41 +0200 | [diff] [blame] | 550 | syntax keyword muttrcVarStr contained skipwhite group_index_format nextgroup=muttrcVarEqualsGrpIdxFmt |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 551 | syntax keyword muttrcVarStr contained skipwhite sidebar_format nextgroup=muttrcVarEqualsSdbFmt |
| 552 | syntax keyword muttrcVarStr contained skipwhite |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 553 | \ abort_key arrow_string assumed_charset attach_charset attach_sep attribution_locale |
| 554 | \ autocrypt_acct_format charset config_charset content_type crypt_protected_headers_subject |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 555 | \ default_hook dsn_notify dsn_return empty_subject forward_attribution_intro |
| 556 | \ forward_attribution_trailer greeting header_cache_backend header_cache_compress_method |
| 557 | \ hidden_tags hostname imap_authenticators imap_delim_chars imap_headers imap_login |
| 558 | \ imap_pass imap_user indent_string mailcap_path mark_macro_prefix mh_seq_flagged |
| 559 | \ mh_seq_replied mh_seq_unseen newsgroups_charset news_server nm_default_url nm_exclude_tags |
| 560 | \ nm_flagged_tag nm_query_type nm_query_window_current_search nm_query_window_or_terms |
| 561 | \ nm_query_window_timebase nm_record_tags nm_replied_tag nm_unread_tag nntp_authenticators |
| 562 | \ nntp_pass nntp_user pgp_default_key pgp_sign_as pipe_sep pop_authenticators pop_host |
| 563 | \ pop_pass pop_user postpone_encrypt_as post_indent_string preconnect preferred_languages |
| 564 | \ real_name send_charset show_multipart_alternative sidebar_delim_chars sidebar_divider_char |
| 565 | \ sidebar_indent_string simple_search smime_default_key smime_encrypt_with smime_sign_as |
| 566 | \ smime_sign_digest_alg smtp_authenticators smtp_pass smtp_url smtp_user spam_separator |
| 567 | \ ssl_ciphers |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 568 | \ nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 569 | |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 570 | " Deprecated strings |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 571 | syntax keyword muttrcVarDeprecatedStr |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 572 | \ abort_noattach_regexp attach_keyword escape forw_format hdr_format indent_str msg_format |
| 573 | \ nm_default_uri pgp_clearsign_command pgp_getkeys_command pgp_self_encrypt_as |
| 574 | \ post_indent_str print_cmd quote_regexp realname reply_regexp smime_self_encrypt_as |
| 575 | \ spoolfile visual xterm_icon xterm_title |
Bram Moolenaar | 7dda86f | 2018-04-20 22:36:41 +0200 | [diff] [blame] | 576 | |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 577 | " CHECKED 2022-04-08 |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 578 | " List of DT_ADDRESS |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 579 | syntax keyword muttrcVarStr contained skipwhite envelope_from_address from nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | 403f3eb | 2019-11-20 22:31:13 +0100 | [diff] [blame] | 580 | " List of DT_ENUM |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 581 | syntax keyword muttrcVarStr contained skipwhite mbox_type use_threads nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 582 | " List of DT_MBTABLE |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 583 | syntax keyword muttrcVarStr contained skipwhite crypt_chars flag_chars from_chars status_chars to_chars nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | 7dda86f | 2018-04-20 22:36:41 +0200 | [diff] [blame] | 584 | |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 585 | " CHECKED 2022-04-08 |
| 586 | " List of DT_PATH or DT_MAILBOX |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 587 | syntax keyword muttrcVarStr contained skipwhite |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 588 | \ alias_file attach_save_dir autocrypt_dir certificate_file debug_file |
| 589 | \ entropy_file folder header_cache history_file mbox message_cachedir newsrc |
| 590 | \ news_cache_dir postponed record signature smime_ca_location |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 591 | \ smime_certificates smime_keys spool_file ssl_ca_certificates_file ssl_client_cert |
| 592 | \ tmpdir trash |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 593 | \ nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | 403f3eb | 2019-11-20 22:31:13 +0100 | [diff] [blame] | 594 | " List of DT_COMMAND (excluding pgp_*_command and smime_*_command) |
| 595 | syntax keyword muttrcVarStr contained skipwhite |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 596 | \ display_filter editor inews ispell mixmaster new_mail_command pager |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 597 | \ print_command query_command sendmail shell external_search_command |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 598 | \ imap_oauth_refresh_command pop_oauth_refresh_command |
| 599 | \ mime_type_query_command smtp_oauth_refresh_command tunnel |
| 600 | \ nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | 7dda86f | 2018-04-20 22:36:41 +0200 | [diff] [blame] | 601 | |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 602 | " CHECKED 2022-04-08 |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 603 | " List of DT_REGEX |
| 604 | syntax keyword muttrcVarStr contained skipwhite |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 605 | \ abort_noattach_regex gecos_mask mask pgp_decryption_okay pgp_good_sign quote_regex |
| 606 | \ reply_regex smileys |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 607 | \ nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 608 | " List of DT_SORT |
| 609 | syntax keyword muttrcVarStr contained skipwhite |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 610 | \ pgp_sort_keys sidebar_sort_method sort sort_alias sort_aux sort_browser |
| 611 | \ nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 612 | |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 613 | " CHECKED 2022-04-08 |
| 614 | " List of commands in mutt_commands in mutt_commands.c |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 615 | " Remember to remove hooks, they have already been dealt with |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 616 | syntax keyword muttrcCommand skipwhite alias nextgroup=muttrcAliasGroupDef,muttrcAliasKey,muttrcAliasNL |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 617 | syntax keyword muttrcCommand skipwhite bind nextgroup=muttrcBindMenuList,muttrcBindMenuListNL |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 618 | syntax keyword muttrcCommand skipwhite exec nextgroup=muttrcFunction |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 619 | syntax keyword muttrcCommand skipwhite macro nextgroup=muttrcMacroMenuList,muttrcMacroMenuListNL |
| 620 | syntax keyword muttrcCommand skipwhite nospam nextgroup=muttrcNoSpamPattern |
| 621 | syntax keyword muttrcCommand skipwhite set unset reset toggle nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr |
| 622 | syntax keyword muttrcCommand skipwhite spam nextgroup=muttrcSpamPattern |
| 623 | syntax keyword muttrcCommand skipwhite unalias nextgroup=muttrcUnAliasKey,muttrcUnAliasNL |
| 624 | syntax keyword muttrcCommand skipwhite unhook nextgroup=muttrcHooks |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 625 | syntax keyword muttrcCommand skipwhite |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 626 | \ alternative_order attachments auto_view cd echo finish hdr_order ifdef ifndef ignore lua |
| 627 | \ lua-source mailboxes mailto_allow mime_lookup my_hdr named-mailboxes push score setenv |
| 628 | \ sidebar_whitelist source subjectrx subscribe-to tag-formats tag-transforms |
| 629 | \ unalternative_order unattachments unauto_view unbind uncolor unhdr_order unignore unmacro |
| 630 | \ unmailboxes unmailto_allow unmime_lookup unmono unmy_hdr unscore unsetenv |
| 631 | \ unsidebar_whitelist unsubjectrx unsubscribe-from unvirtual-mailboxes virtual-mailboxes |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 632 | |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 633 | function! s:genFunctions(functions) |
| 634 | for f in a:functions |
| 635 | exec 'syntax match muttrcFunction contained "\<' . l:f . '\>"' |
| 636 | endfor |
| 637 | endfunction |
| 638 | |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 639 | " CHECKED 2022-04-08 |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 640 | " List of functions in functions.c |
| 641 | " Note: 'noop' is included but is elsewhere in the source |
| 642 | call s:genFunctions(['noop', |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 643 | \ 'accept', 'alias-dialog', 'append', 'attach-file', 'attach-key', 'attach-message', |
| 644 | \ 'attach-news-message', 'autocrypt-acct-menu', 'autocrypt-menu', 'backspace', |
| 645 | \ 'backward-char', 'backward-word', 'bol', 'bottom', 'bottom-page', 'bounce-message', |
| 646 | \ 'break-thread', 'buffy-cycle', 'buffy-list', 'capitalize-word', 'catchup', 'chain-next', |
| 647 | \ 'chain-prev', 'change-dir', 'change-folder', 'change-folder-readonly', 'change-newsgroup', |
| 648 | \ 'change-newsgroup-readonly', 'change-vfolder', 'check-new', 'check-stats', |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 649 | \ 'check-traditional-pgp', 'clear-flag', 'collapse-all', 'collapse-parts', |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 650 | \ 'collapse-thread', 'complete', 'complete-query', 'compose-to-sender', 'copy-file', |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 651 | \ 'copy-message', 'create-account', 'create-alias', 'create-mailbox', 'current-bottom', |
| 652 | \ 'current-middle', 'current-top', 'decode-copy', 'decode-save', 'decrypt-copy', |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 653 | \ 'decrypt-save', 'delete', 'delete-account', 'delete-char', 'delete-entry', |
| 654 | \ 'delete-mailbox', 'delete-message', 'delete-pattern', 'delete-subthread', 'delete-thread', |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 655 | \ 'descend-directory', 'detach-file', 'display-address', 'display-filename', |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 656 | \ 'display-message', 'display-toggle-weed', 'downcase-word', 'edit', 'edit-bcc', 'edit-cc', |
| 657 | \ 'edit-content-id', 'edit-description', 'edit-encoding', 'edit-fcc', 'edit-file', |
| 658 | \ 'edit-followup-to', 'edit-from', 'edit-headers', 'edit-label', 'edit-language', |
| 659 | \ 'edit-message', 'edit-mime', 'edit-newsgroups', 'edit-or-view-raw-message', |
| 660 | \ 'edit-raw-message', 'edit-reply-to', 'edit-subject', 'edit-to', 'edit-type', |
| 661 | \ 'edit-x-comment-to', 'end-cond', 'enter-command', 'enter-mask', 'entire-thread', 'eol', |
| 662 | \ 'error-history', 'exit', 'extract-keys', 'fetch-mail', 'filter-entry', 'first-entry', |
| 663 | \ 'flag-message', 'followup-message', 'forget-passphrase', 'forward-char', |
| 664 | \ 'forward-message', 'forward-to-group', 'forward-word', 'get-attachment', 'get-children', |
| 665 | \ 'get-message', 'get-parent', 'goto-folder', 'goto-parent', 'group-alternatives', |
| 666 | \ 'group-chat-reply', 'group-multilingual', 'group-related', 'group-reply', 'half-down', |
| 667 | \ 'half-up', 'help', 'history-down', 'history-search', 'history-up', 'imap-fetch-mail', |
| 668 | \ 'imap-logout-all', 'insert', 'ispell', 'jump', 'kill-eol', 'kill-eow', 'kill-line', |
| 669 | \ 'kill-word', 'last-entry', 'limit', 'limit-current-thread', 'link-threads', 'list-reply', |
| 670 | \ 'list-subscribe', 'list-unsubscribe', 'mail', 'mail-key', 'mailbox-cycle', 'mailbox-list', |
| 671 | \ 'mark-as-new', 'mark-message', 'middle-page', 'mix', 'modify-labels', |
| 672 | \ 'modify-labels-then-hide', 'modify-tags', 'modify-tags-then-hide', 'move-down', 'move-up', |
| 673 | \ 'new-mime', 'next-entry', 'next-line', 'next-new', 'next-new-then-unread', 'next-page', |
| 674 | \ 'next-subthread', 'next-thread', 'next-undeleted', 'next-unread', 'next-unread-mailbox', |
| 675 | \ 'parent-message', 'pgp-menu', 'pipe-entry', 'pipe-message', 'post-message', |
| 676 | \ 'postpone-message', 'previous-entry', 'previous-line', 'previous-new', |
| 677 | \ 'previous-new-then-unread', 'previous-page', 'previous-subthread', 'previous-thread', |
| 678 | \ 'previous-undeleted', 'previous-unread', 'print-entry', 'print-message', 'purge-message', |
| 679 | \ 'purge-thread', 'quasi-delete', 'query', 'query-append', 'quit', 'quote-char', |
| 680 | \ 'read-subthread', 'read-thread', 'recall-message', 'reconstruct-thread', 'redraw-screen', |
| 681 | \ 'refresh', 'reload-active', 'rename-attachment', 'rename-file', 'rename-mailbox', 'reply', |
| 682 | \ 'resend-message', 'root-message', 'save-entry', 'save-message', 'search', 'search-next', |
| 683 | \ 'search-opposite', 'search-reverse', 'search-toggle', 'select-entry', 'select-new', |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 684 | \ 'send-message', 'set-flag', 'shell-escape', 'show-limit', 'show-log-messages', |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 685 | \ 'show-version', 'sidebar-first', 'sidebar-last', 'sidebar-next', 'sidebar-next-new', |
| 686 | \ 'sidebar-open', 'sidebar-page-down', 'sidebar-page-up', 'sidebar-prev', |
| 687 | \ 'sidebar-prev-new', 'sidebar-toggle-virtual', 'sidebar-toggle-visible', 'skip-headers', |
| 688 | \ 'skip-quoted', 'smime-menu', 'sort', 'sort-alias', 'sort-alias-reverse', 'sort-mailbox', |
| 689 | \ 'sort-reverse', 'subscribe', 'subscribe-pattern', 'sync-mailbox', 'tag-entry', |
| 690 | \ 'tag-message', 'tag-pattern', 'tag-prefix', 'tag-prefix-cond', 'tag-subthread', |
| 691 | \ 'tag-thread', 'toggle-active', 'toggle-disposition', 'toggle-mailboxes', 'toggle-new', |
| 692 | \ 'toggle-prefer-encrypt', 'toggle-quoted', 'toggle-read', 'toggle-recode', |
| 693 | \ 'toggle-subscribed', 'toggle-unlink', 'toggle-write', 'top', 'top-page', |
| 694 | \ 'transpose-chars', 'uncatchup', 'undelete-entry', 'undelete-message', 'undelete-pattern', |
| 695 | \ 'undelete-subthread', 'undelete-thread', 'ungroup-attachment', 'unsubscribe', |
| 696 | \ 'unsubscribe-pattern', 'untag-pattern', 'upcase-word', 'update-encoding', 'verify-key', |
| 697 | \ 'vfolder-from-query', 'vfolder-from-query-readonly', 'vfolder-window-backward', |
| 698 | \ 'vfolder-window-forward', 'vfolder-window-reset', 'view-attach', 'view-attachments', |
| 699 | \ 'view-file', 'view-mailcap', 'view-name', 'view-pager', 'view-raw-message', 'view-text', |
| 700 | \ 'what-key', 'write-fcc' |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 701 | \ ]) |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 702 | |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 703 | " Define the default highlighting. |
| 704 | " Only when an item doesn't have highlighting yet |
| 705 | |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 706 | highlight def link muttrcSetBoolAssignment Boolean |
| 707 | highlight def link muttrcSetQuadAssignment Boolean |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 708 | |
| 709 | highlight def link muttrcComment Comment |
| 710 | |
| 711 | highlight def link muttrcAlternatesLine Error |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 712 | highlight def link muttrcBadAction Error |
| 713 | highlight def link muttrcBindFunction Error |
| 714 | highlight def link muttrcBindMenuList Error |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 715 | highlight def link muttrcColorBG Error |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 716 | highlight def link muttrcColorBGH Error |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 717 | highlight def link muttrcColorBGI Error |
| 718 | highlight def link muttrcColorContext Error |
| 719 | highlight def link muttrcColorFG Error |
| 720 | highlight def link muttrcColorFGH Error |
| 721 | highlight def link muttrcColorFGI Error |
| 722 | highlight def link muttrcColorLine Error |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 723 | highlight def link muttrcFormatErrors Error |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 724 | highlight def link muttrcGroupLine Error |
| 725 | highlight def link muttrcListsLine Error |
| 726 | highlight def link muttrcPattern Error |
| 727 | highlight def link muttrcSubscribeLine Error |
| 728 | highlight def link muttrcUnColorLine Error |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 729 | highlight def link muttrcVarDeprecatedBool Error |
| 730 | highlight def link muttrcVarDeprecatedQuad Error |
| 731 | highlight def link muttrcVarDeprecatedStr Error |
| 732 | |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 733 | highlight def link muttrcAliasEncEmail Identifier |
| 734 | highlight def link muttrcAliasKey Identifier |
| 735 | highlight def link muttrcColorCompose Identifier |
| 736 | highlight def link muttrcColorComposeField Identifier |
| 737 | highlight def link muttrcColorContextH Identifier |
| 738 | highlight def link muttrcColorContextI Identifier |
| 739 | highlight def link muttrcColorField Identifier |
| 740 | highlight def link muttrcMenu Identifier |
| 741 | highlight def link muttrcSimplePat Identifier |
| 742 | highlight def link muttrcUnAliasKey Identifier |
| 743 | highlight def link muttrcUnColorIndex Identifier |
| 744 | highlight def link muttrcVarBool Identifier |
| 745 | highlight def link muttrcVarNum Identifier |
| 746 | highlight def link muttrcVarQuad Identifier |
| 747 | highlight def link muttrcVarStr Identifier |
| 748 | |
| 749 | highlight def link muttrcCommand Keyword |
| 750 | |
| 751 | highlight def link muttrcAction Macro |
| 752 | highlight def link muttrcAliasGroupName Macro |
| 753 | highlight def link muttrcFunction Macro |
| 754 | highlight def link muttrcGroupDef Macro |
| 755 | highlight def link muttrcSimplePatString Macro |
| 756 | |
| 757 | highlight def link muttrcMonoAttrib muttrcColor |
| 758 | |
| 759 | highlight def link muttrcAlternateKeyword muttrcCommand |
| 760 | highlight def link muttrcAttachmentsLine muttrcCommand |
| 761 | highlight def link muttrcColorKeyword muttrcCommand |
| 762 | highlight def link muttrcGroupKeyword muttrcCommand |
| 763 | highlight def link muttrcListsKeyword muttrcCommand |
| 764 | highlight def link muttrcMono muttrcCommand |
| 765 | highlight def link muttrcPatHooks muttrcCommand |
| 766 | highlight def link muttrcRXHooks muttrcCommand |
| 767 | highlight def link muttrcSubscribeKeyword muttrcCommand |
| 768 | highlight def link muttrcUnColorKeyword muttrcCommand |
| 769 | |
| 770 | highlight def link muttrcAliasFormatEscapes muttrcEscape |
| 771 | highlight def link muttrcAttachFormatEscapes muttrcEscape |
| 772 | highlight def link muttrcComposeFormatEscapes muttrcEscape |
| 773 | highlight def link muttrcFolderFormatEscapes muttrcEscape |
| 774 | highlight def link muttrcGroupIndexFormatEscapes muttrcEscape |
| 775 | highlight def link muttrcIndexFormatEscapes muttrcEscape |
| 776 | highlight def link muttrcMixFormatEscapes muttrcEscape |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 777 | highlight def link muttrcPatternFormatEscapes muttrcEscape |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 778 | highlight def link muttrcPGPCmdFormatEscapes muttrcEscape |
| 779 | highlight def link muttrcPGPFormatEscapes muttrcEscape |
| 780 | highlight def link muttrcPGPTimeEscapes muttrcEscape |
| 781 | highlight def link muttrcQueryFormatEscapes muttrcEscape |
| 782 | highlight def link muttrcShellString muttrcEscape |
| 783 | highlight def link muttrcSidebarFormatEscapes muttrcEscape |
| 784 | highlight def link muttrcSmimeFormatEscapes muttrcEscape |
| 785 | highlight def link muttrcStatusFormatEscapes muttrcEscape |
| 786 | highlight def link muttrcTimeEscapes muttrcEscape |
| 787 | |
| 788 | highlight def link muttrcAliasFormatConditionals muttrcFormatConditionals2 |
| 789 | highlight def link muttrcAttachFormatConditionals muttrcFormatConditionals2 |
| 790 | highlight def link muttrcComposeFormatConditionals muttrcFormatConditionals2 |
| 791 | highlight def link muttrcFolderFormatConditionals muttrcFormatConditionals2 |
| 792 | highlight def link muttrcIndexFormatConditionals muttrcFormatConditionals2 |
| 793 | highlight def link muttrcMixFormatConditionals muttrcFormatConditionals2 |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 794 | highlight def link muttrcPatternFormatConditionals muttrcFormatConditionals2 |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 795 | highlight def link muttrcPGPCmdFormatConditionals muttrcFormatConditionals2 |
| 796 | highlight def link muttrcPGPFormatConditionals muttrcFormatConditionals2 |
| 797 | highlight def link muttrcSmimeFormatConditionals muttrcFormatConditionals2 |
| 798 | highlight def link muttrcStatusFormatConditionals muttrcFormatConditionals2 |
| 799 | |
| 800 | highlight def link muttrcAddrDef muttrcGroupFlag |
| 801 | highlight def link muttrcRXDef muttrcGroupFlag |
| 802 | |
| 803 | highlight def link muttrcAliasFormatStr muttrcString |
| 804 | highlight def link muttrcAttachFormatStr muttrcString |
| 805 | highlight def link muttrcComposeFormatStr muttrcString |
| 806 | highlight def link muttrcFolderFormatStr muttrcString |
| 807 | highlight def link muttrcGroupIndexFormatStr muttrcString |
| 808 | highlight def link muttrcIndexFormatStr muttrcString |
| 809 | highlight def link muttrcMixFormatStr muttrcString |
Bram Moolenaar | cbaff5e | 2022-04-08 17:45:08 +0100 | [diff] [blame] | 810 | highlight def link muttrcPatternFormatStr muttrcString |
Bram Moolenaar | e46a440 | 2020-06-30 20:38:27 +0200 | [diff] [blame] | 811 | highlight def link muttrcPGPCmdFormatStr muttrcString |
| 812 | highlight def link muttrcPGPFormatStr muttrcString |
| 813 | highlight def link muttrcQueryFormatStr muttrcString |
| 814 | highlight def link muttrcSidebarFormatStr muttrcString |
| 815 | highlight def link muttrcSmimeFormatStr muttrcString |
| 816 | highlight def link muttrcStatusFormatStr muttrcString |
| 817 | highlight def link muttrcStrftimeFormatStr muttrcString |
| 818 | |
| 819 | highlight def link muttrcSetNumAssignment Number |
| 820 | |
| 821 | highlight def link muttrcEmail Special |
| 822 | highlight def link muttrcSimplePatMetas Special |
| 823 | highlight def link muttrcSpecial Special |
| 824 | highlight def link muttrcVariableInner Special |
| 825 | |
| 826 | highlight def link muttrcAliasEncEmailNL SpecialChar |
| 827 | highlight def link muttrcAliasENNL SpecialChar |
| 828 | highlight def link muttrcAliasGroupDefNL SpecialChar |
| 829 | highlight def link muttrcAliasNameNL SpecialChar |
| 830 | highlight def link muttrcAliasNL SpecialChar |
| 831 | highlight def link muttrcBindFunctionNL SpecialChar |
| 832 | highlight def link muttrcBindKeyNL SpecialChar |
| 833 | highlight def link muttrcBindMenuListNL SpecialChar |
| 834 | highlight def link muttrcColorBGNL SpecialChar |
| 835 | highlight def link muttrcColorFGNL SpecialChar |
| 836 | highlight def link muttrcColorMatchCountNL SpecialChar |
| 837 | highlight def link muttrcColorNL SpecialChar |
| 838 | highlight def link muttrcColorRXNL SpecialChar |
| 839 | highlight def link muttrcEscape SpecialChar |
| 840 | highlight def link muttrcKeyName SpecialChar |
| 841 | highlight def link muttrcKeySpecial SpecialChar |
| 842 | highlight def link muttrcMacroBodyNL SpecialChar |
| 843 | highlight def link muttrcMacroDescrNL SpecialChar |
| 844 | highlight def link muttrcMacroKeyNL SpecialChar |
| 845 | highlight def link muttrcMacroMenuListNL SpecialChar |
| 846 | highlight def link muttrcPatternNL SpecialChar |
| 847 | highlight def link muttrcRXChars SpecialChar |
| 848 | highlight def link muttrcStringNL SpecialChar |
| 849 | highlight def link muttrcUnAliasNL SpecialChar |
| 850 | highlight def link muttrcUnColorAPNL SpecialChar |
| 851 | highlight def link muttrcUnColorIndexNL SpecialChar |
| 852 | highlight def link muttrcUnColorPatNL SpecialChar |
| 853 | |
| 854 | highlight def link muttrcAttachmentsMimeType String |
| 855 | highlight def link muttrcEscapedVariable String |
| 856 | highlight def link muttrcMacroDescr String |
| 857 | highlight def link muttrcRXPat String |
| 858 | highlight def link muttrcRXString String |
| 859 | highlight def link muttrcRXString2 String |
| 860 | highlight def link muttrcSetStrAssignment String |
| 861 | highlight def link muttrcString String |
| 862 | |
| 863 | highlight def link muttrcAliasParens Type |
| 864 | highlight def link muttrcAttachmentsFlag Type |
| 865 | highlight def link muttrcColor Type |
| 866 | highlight def link muttrcFormatConditionals2 Type |
| 867 | highlight def link muttrcGroupFlag Type |
| 868 | highlight def link muttrcHeader Type |
| 869 | highlight def link muttrcHooks Type |
| 870 | highlight def link muttrcKey Type |
| 871 | highlight def link muttrcPatHookNot Type |
| 872 | highlight def link muttrcRXHookNot Type |
| 873 | highlight def link muttrcStrftimeEscapes Type |
| 874 | |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 875 | let b:current_syntax = "neomuttrc" |
| 876 | |
| 877 | let &cpo = s:cpo_save |
| 878 | unlet s:cpo_save |
Bram Moolenaar | 7dda86f | 2018-04-20 22:36:41 +0200 | [diff] [blame] | 879 | |
| 880 | " vim: ts=8 noet tw=100 sw=8 sts=0 ft=vim isk+=- |