2018-07-15 20:23:38 +08:00
|
|
|
if exists('b:current_syntax') && b:current_syntax ==# 'SpaceVimRunner'
|
2018-08-26 13:14:25 +08:00
|
|
|
finish
|
2017-12-04 10:30:47 +08:00
|
|
|
endif
|
2018-07-15 20:23:38 +08:00
|
|
|
let b:current_syntax = 'SpaceVimRunner'
|
2017-12-04 10:30:47 +08:00
|
|
|
syntax case ignore
|
|
|
|
syn match KeyBindings /\[Running\]/
|
2017-12-04 11:15:46 +08:00
|
|
|
syn match KeyBindings /\[Compile\]/
|
|
|
|
syn match RunnerCmd /\(\[Running\]\ \)\@<=.*/
|
|
|
|
syn match RunnerCmd /\(\[Compile\]\ \)\@<=.*/
|
2017-12-04 10:30:47 +08:00
|
|
|
syn match DoneSucceeded /\[Done]\(\ exited\ with\ code=0\)\@=/
|
|
|
|
syn match DoneFailed /\[Done]\(\ exited\ with\ code=[^0]\)\@=/
|
2017-12-04 20:24:41 +08:00
|
|
|
syn match ExitCode /\(\[Done\]\ exited\ with \)\@<=code=0/
|
|
|
|
syn match ExitCodeFailed /\(\[Done\]\ exited\ with \)\@<=code=[^0]/
|
2017-12-04 10:30:47 +08:00
|
|
|
|
|
|
|
hi def link RunnerCmd Comment
|
|
|
|
hi def link KeyBindings String
|
|
|
|
hi def link DoneSucceeded String
|
|
|
|
hi def link DoneFailed WarningMsg
|
2017-12-04 20:24:41 +08:00
|
|
|
hi def link ExitCode MoreMsg
|
|
|
|
hi def link ExitCodeFailed WarningMsg
|