Underscore between parens

This commit is contained in:
Junegunn Choi
2013-09-22 22:56:27 +09:00
parent 8a783c2125
commit 2d575bcc25

View File

@@ -135,7 +135,7 @@ function! s:echon(l, n, r, d, o, warn)
call extend(tokens, a:r == 1 ? call extend(tokens, a:r == 1 ?
\ [['Delimiter', '/'], ['String', a:d], ['Delimiter', '/']] : \ [['Delimiter', '/'], ['String', a:d], ['Delimiter', '/']] :
\ [['Identifier', a:d == ' ' ? '\ ' : (a:d == '\' ? '\\' : a:d)]]) \ [['Identifier', a:d == ' ' ? '\ ' : (a:d == '\' ? '\\' : a:d)]])
if a:r == -1 | call add(tokens, ['Comment', ')']) | endif if a:r == -1 | call extend(tokens, [['Normal', '_'], ['Comment', ')']]) | endif
call add(tokens, ['Statement', empty(a:o) ? '' : ' '.string(a:o)]) call add(tokens, ['Statement', empty(a:o) ? '' : ' '.string(a:o)])
if !empty(a:warn) if !empty(a:warn)
call add(tokens, ['WarningMsg', ' ('.a:warn.')']) call add(tokens, ['WarningMsg', ' ('.a:warn.')'])