~gpanders/dotfiles

ref: c8e63bac959db19c138dcc3198a56514f0b444ff dotfiles/.vim/after/syntax/mail.vim -rw-r--r-- 1.9 KiB
c8e63bacGreg Anders Manage dotfiles directly in home directory 1 year, 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
syn region mailItalic matchgroup=mailItalicDelimiter start="\S\@<=\\\@<!\*\|\\\@<!\*\S\@=" end="\S\@<=\\\@<!\*\|\\\@<!\*\S\@=" keepend contains=@Spell
syn region mailItalic matchgroup=mailItalicDelimiter start="\S\@<=\\\@<!_\|\\\@<!_\S\@=" end="\S\@<=\\\@<!_\|\\\@<!_\S\@=" keepend contains=@Spell
syn region mailBold matchgroup=mailBoldDelimiter start="\S\@<=\*\*\|\*\*\S\@=" end="\S\@<=\*\*\|\*\*\S\@=" keepend contains=mailItalic,@Spell
syn region mailBold matchgroup=mailBoldDelimiter start="\S\@<=__\|__\S\@=" end="\S\@<=__\|__\S\@=" keepend contains=mailItalic,@Spell
syn region mailBoldItalic matchgroup=mailBoldItalicDelimiter start="\S\@<=\*\*\*\|\*\*\*\S\@=" end="\S\@<=\*\*\*\|\*\*\*\S\@=" keepend contains=@Spell
syn region mailBoldItalic matchgroup=mailBoldItalicDelimiter start="\S\@<=___\|___\S\@=" end="\S\@<=___\|___\S\@=" keepend contains=@Spell

syn region mailCode matchgroup=mailCodeDelimiter start="`" end="`" keepend
syn region mailCode matchgroup=mailCodeDelimiter start="`` \=" end=" \=``" keepend
syn region mailCode matchgroup=mailCodeDelimiter start="^\s*````*.*$" end="^\s*````*\ze\s*$" keepend

hi def mailBold                term=bold cterm=bold gui=bold
hi def mailBoldUnderline       term=bold,underline cterm=bold,underline gui=bold,underline
hi def mailBoldItalic          term=bold,italic cterm=bold,italic gui=bold,italic
hi def mailBoldUnderlineItalic term=bold,italic,underline cterm=bold,italic,underline gui=bold,italic,underline
hi def mailUnderline           term=underline cterm=underline gui=underline
hi def mailUnderlineItalic     term=italic,underline cterm=italic,underline gui=italic,underline
hi def mailItalic              term=italic cterm=italic gui=italic

hi def link mailItalicDelimiter       mailItalic
hi def link mailBoldDelimiter         mailBold
hi def link mailBoldItalicDelimiter   mailBoldItalic
hi def link mailCodeDelimiter         Delimiter