15
15
" *bold*, /italic/, _underline_, +strike-through+, =code=, ~verbatim~
16
16
" Note:
17
17
" - /italic/ is rendered as reverse in most terms (works fine in gVim, though)
18
- " - +strike-through+ doesn't work on Vim / gVim
19
18
" - the non-standard `code' markup is also supported
20
19
" - =code= and ~verbatim~ are also supported as block-level markup, see below.
21
20
" Ref: http://orgmode.org/manual/Emphasis-and-monospace.html
@@ -32,18 +31,21 @@ if (s:conceal_aggressively == 1)
32
31
syntax region org_code matchgroup =org_border_code start =" [^ \\ ]\z s=\|\(\( ^\| [^\\ ]\)\z s\(\\\\\)\+\)\z s=\|\( ^\| [^\\ ]\)\@ <==\S\@ =" end =" [^ \\ ]\z s=\|\(\( ^\| [^\\ ]\)\z s\(\\\\\)\+\)\z s=\| [^\\ ]\z s=\S\@ =" concealends oneline
33
32
syntax region org_code matchgroup =org_border_code start =" [^ \\ ]\z s`\|\(\( ^\| [^\\ ]\)\z s\(\\\\\)\+\)\z s`\|\( ^\| [^\\ ]\)\@ <=`\S\@ =" end =" [^ \\ ]\z s'\|\(\( ^\| [^\\ ]\)\z s\(\\\\\)\+\)\z s'\| [^\\ ]\z s'\S\@ =" concealends oneline
34
33
syntax region org_verbatim matchgroup =org_border_verb start =" [^ \\ ]\z s\~\|\(\( ^\| [^\\ ]\)\z s\(\\\\\)\+\)\z s\~\|\( ^\| [^\\ ]\)\@ <=\~\S\@ =" end =" [^ \\ ]\z s\~\|\(\( ^\| [^\\ ]\)\z s\(\\\\\)\+\)\z s\~\| [^\\ ]\z s\~\S\@ =" concealends oneline
34
+ syntax region org_strikethrough matchgroup =org_border_strike start =" [^ \\ ]\z s+\|\(\( ^\| [^\\ ]\)\z s\(\\\\\)\+\)\z s+\|\( ^\| [^\\ ]\)\@ <=+\S\@ =" end =" [^ \\ ]\z s+\|\(\( ^\| [^\\ ]\)\z s\(\\\\\)\+\)\z s+\| [^\\ ]\z s+\S\@ =" concealends oneline
35
35
else
36
36
syntax region org_bold start =" \S\z s\*\|\*\S\@ =" end =" \S\z s\*\|\*\S\@ =" keepend oneline
37
37
syntax region org_italic start =" \S\z s\/\|\/\S\@ =" end =" \S\z s\/\|\/\S\@ =" keepend oneline
38
38
syntax region org_underline start =" \S\z s_\| _\S\@ =" end =" \S\z s_\| _\S\@ =" keepend oneline
39
39
syntax region org_code start =" \S\z s=\| =\S\@ =" end =" \S\z s=\| =\S\@ =" keepend oneline
40
40
syntax region org_code start =" \S\z s`\| `\S\@ =" end =" \S\z s'\| '\S\@ =" keepend oneline
41
41
syntax region org_verbatim start =" \S\z s\~\|\~\S\@ =" end =" \S\z s\~\|\~\S\@ =" keepend oneline
42
+ syntax region org_strikethrough start =" \S\z s+\| +\S\@ =" end =" \S\z s+\| +\S\@ =" keepend oneline
42
43
endif
43
44
44
45
hi def org_bold term = bold cterm= bold gui = bold
45
46
hi def org_italic term = italic cterm= italic gui = italic
46
47
hi def org_underline term = underline cterm= underline gui = underline
48
+ hi def org_strikethrough term = strikethrough cterm= strikethrough gui = strikethrough
47
49
48
50
if (s: conceal_aggressively == 1 )
49
51
hi link org_border_bold org_bold
0 commit comments