-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathgoterminal.vim
31 lines (23 loc) · 977 Bytes
/
goterminal.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
" Copyright 2018 The nvim-go Authors. All rights reserved.
" Use of this source code is governed by a BSD-style
" license that can be found in the LICENSE file.
" ----------------------------------------------------------------------------
" initialize
if exists("b:current_syntax")
finish
endif
" ----------------------------------------------------------------------------
" get config variables
let g:go#highlight#terminal#test = get(g:, 'go#highlight#terminal#test', 1)
" ----------------------------------------------------------------------------
" set syntax highlight
if g:go#highlight#terminal#test != 0
syn match GoTestRun /\<\v(RUN)/
syn match GoTestPass /\<\v(PASS)/
syn match GoTestFail /\<\v(FAIL)/
hi def link GoTestRun Function
hi def link GoTestPass Statement
hi def link GoTestFail Identifier
endif
" ----------------------------------------------------------------------------
let b:current_syntax = "goterminal"