all repos

viye @ f47d92e

my shot at reimplementing xiki

viye/syntax/viye.vim (view raw)

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
add vim syntax highlighting, 1 month ago
1
if exists("b:current_syntax")
2
  finish
3
endif
4
5
syn match viyeTool   /^[^|:=+ \t-]\S*/            " top-level command name
6
syn match viyeTool   /^\s*[+-] \zs\S\+\ze\/\@<!/  " bullet child
7
syn match viyeURL    /\v<https:\/\/\S+/           " urls
8
syn match viyeOutput /^\s*|.*$/                   " | output
9
syn match viyeBody   /^\s*:.*$/                   " : body
10
11
hi def link viyeTool Function
12
hi def link viyeURL Underlined
13
hi def link viyeOutput Comment
14
hi def link viyeBody String
15
16
let b:current_syntax = "viye"