aboutsummaryrefslogtreecommitdiff
path: root/after/syntax
diff options
context:
space:
mode:
Diffstat (limited to 'after/syntax')
-rw-r--r--after/syntax/log.vim24
-rw-r--r--after/syntax/markdown.vim19
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
3hi link Info NonText
4hi link Pass DiffAdd
5
6syn match ERROR /TEST-UNEXPECTED-FAIL/
7syn match NonText /^\[[^\]]*\]/
8
9syn match NonText /^ *\d\{1,2\}:\d\{1,2\}[.:]\d\{1,2\}[:0-9]*/
10syn match ErrorMsg / ERROR /
11syn match ErrorMsg / FAIL /
12syn match Error / WARNING /
13syn match Info / INFO / fold
14syn match Pass / PASS / fold
15
16
17silent! lvimgrep /[^ ]* \(ERROR\|WARNING\|FAIL\) / %
18lopen 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
5syntax match markdownConceal "\[\ \]" contained conceal cchar=
6syntax match markdownConceal "\[x\]" contained conceal cchar=
7syntax match markdownConceal "*" contained conceal cchar=
8syntax match markdownConceal "-" contained conceal cchar=
9syntax match markdownConceal "+" contained conceal cchar=
10
11syntax region
12 \ markdownItemization
13 \ start="^\s*\(\[ \]\|[\+\-\*x]\)\s"
14 \ end="\s"
15 \ contains=markdownConceal
16
17
18hi def link markdownConceal Todo
19hi! link Conceal Text
..