From b24ce563611a7041c8a2e7ded82e7f30fbe88e17 Mon Sep 17 00:00:00 2001 From: leafOfTree Date: Fri, 12 Mar 2021 17:03:34 +0800 Subject: [PATCH] Remove optional function argument --- syntax/vue-custom-blocks.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/syntax/vue-custom-blocks.vim b/syntax/vue-custom-blocks.vim index cc761ce..c23d257 100644 --- a/syntax/vue-custom-blocks.vim +++ b/syntax/vue-custom-blocks.vim @@ -29,7 +29,7 @@ function! s:LoadSyntax() endfor endfunction -function! s:SetSyntax(block, syntax, lang = 0) +function! s:SetSyntax(block, syntax, lang) let block = a:block let syntax = a:syntax let lang = a:lang @@ -50,9 +50,9 @@ function! s:Highlight() for [block, syntax] in items(s:custom_blocks) let type = type(syntax) if type == v:t_string - call s:SetSyntax(block, syntax) + call s:SetSyntax(block, syntax, 0) elseif type == v:t_list && len(syntax) - call s:SetSyntax(block, syntax[0]) + call s:SetSyntax(block, syntax[0], 0) for syn in syntax call s:SetSyntax(block, syn, 1) endfor