diff options
Diffstat (limited to 'after/syntax')
-rw-r--r-- | after/syntax/log.vim | 24 | ||||
-rw-r--r-- | after/syntax/markdown.vim | 19 |
2 files changed, 43 insertions, 0 deletions
diff --git a/after/syntax/log.vim b/after/syntax/log.vim new file mode 100644 index 0000000..44223e6 --- /dev/null +++ b/after/syntax/log.vim | |||
@@ -0,0 +1,24 @@ | |||
1 | |||
2 | |||
3 | hi link Info NonText | ||
4 | hi link Pass DiffAdd | ||
5 | |||
6 | syn match ERROR /TEST-UNEXPECTED-FAIL/ | ||
7 | syn match NonText /^\[[^\]]*\]/ | ||
8 | |||
9 | syn match NonText /^ *\d\{1,2\}:\d\{1,2\}[.:]\d\{1,2\}[:0-9]*/ | ||
10 | syn match ErrorMsg / ERROR / | ||
11 | syn match ErrorMsg / FAIL / | ||
12 | syn match Error / WARNING / | ||
13 | syn match Info / INFO / fold | ||
14 | syn match Pass / PASS / fold | ||
15 | |||
16 | |||
17 | silent! lvimgrep /[^ ]* \(ERROR\|WARNING\|FAIL\) / % | ||
18 | lopen 12 | ||
19 | |||
20 | |||
21 | |||
22 | " setlocal foldexpr=getline(v:lnum)=~'INFO' | ||
23 | " setlocal foldmethod=expr | ||
24 | " setlocal foldenable | ||
diff --git a/after/syntax/markdown.vim b/after/syntax/markdown.vim new file mode 100644 index 0000000..7bdbf46 --- /dev/null +++ b/after/syntax/markdown.vim | |||
@@ -0,0 +1,19 @@ | |||
1 | " Custom conceal | ||
2 | " syntax region todolist start="^\s*[\+-\*x ]" end="\s" contained keepend | ||
3 | |||
4 | |||
5 | syntax match markdownConceal "\[\ \]" contained conceal cchar= | ||
6 | syntax match markdownConceal "\[x\]" contained conceal cchar= | ||
7 | syntax match markdownConceal "*" contained conceal cchar= | ||
8 | syntax match markdownConceal "-" contained conceal cchar= | ||
9 | syntax match markdownConceal "+" contained conceal cchar= | ||
10 | |||
11 | syntax region | ||
12 | \ markdownItemization | ||
13 | \ start="^\s*\(\[ \]\|[\+\-\*x]\)\s" | ||
14 | \ end="\s" | ||
15 | \ contains=markdownConceal | ||
16 | |||
17 | |||
18 | hi def link markdownConceal Todo | ||
19 | hi! link Conceal Text | ||