mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-12 07:31:50 +08:00
Remove optional function argument
This commit is contained in:
@@ -29,7 +29,7 @@ function! s:LoadSyntax()
|
|||||||
endfor
|
endfor
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:SetSyntax(block, syntax, lang = 0)
|
function! s:SetSyntax(block, syntax, lang)
|
||||||
let block = a:block
|
let block = a:block
|
||||||
let syntax = a:syntax
|
let syntax = a:syntax
|
||||||
let lang = a:lang
|
let lang = a:lang
|
||||||
@@ -50,9 +50,9 @@ function! s:Highlight()
|
|||||||
for [block, syntax] in items(s:custom_blocks)
|
for [block, syntax] in items(s:custom_blocks)
|
||||||
let type = type(syntax)
|
let type = type(syntax)
|
||||||
if type == v:t_string
|
if type == v:t_string
|
||||||
call s:SetSyntax(block, syntax)
|
call s:SetSyntax(block, syntax, 0)
|
||||||
elseif type == v:t_list && len(syntax)
|
elseif type == v:t_list && len(syntax)
|
||||||
call s:SetSyntax(block, syntax[0])
|
call s:SetSyntax(block, syntax[0], 0)
|
||||||
for syn in syntax
|
for syn in syntax
|
||||||
call s:SetSyntax(block, syn, 1)
|
call s:SetSyntax(block, syn, 1)
|
||||||
endfor
|
endfor
|
||||||
|
|||||||
Reference in New Issue
Block a user