We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7e64387 + 7e172cb commit 9ef368cCopy full SHA for 9ef368c
autoload/clang_format.vim
@@ -3,6 +3,7 @@ set cpo&vim
3
4
let s:on_windows = has('win32') || has('win64')
5
let s:dict_t = type({})
6
+let s:list_t = type([])
7
if exists('v:true')
8
let s:bool_t = type(v:true)
9
else
@@ -44,12 +45,12 @@ endfunction
44
45
function! s:create_keyvals(key, val) abort
46
if type(a:val) == s:dict_t
47
return a:key . ': {' . s:stringize_options(a:val) . '}'
48
+ elseif type(a:val) == s:bool_t
49
+ return a:key . (a:val == v:true ? ': true' : ': false')
50
+ elseif type(a:val) == s:list_t
51
+ return a:key . ': [' . join(a:val,',') . ']'
52
- if type(a:val) == s:bool_t
- return a:key . (a:val == v:true ? ': true' : ': false')
- else
- return a:key . ': ' . a:val
- endif
53
+ return a:key . ': ''' . a:val . ''''
54
endif
55
endfunction
56
0 commit comments