From 2c997ed781499e7c1d86bae60657ef7d1270bf5b Mon Sep 17 00:00:00 2001 From: Camille Dejoye Date: Tue, 17 Nov 2020 13:48:57 +0100 Subject: [PATCH] Fix PHP smart brace hook for static method --- autoload/argwrap/hooks/filetype/php/200_smart_brace.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/argwrap/hooks/filetype/php/200_smart_brace.vim b/autoload/argwrap/hooks/filetype/php/200_smart_brace.vim index 0a2db46..c2f08ce 100644 --- a/autoload/argwrap/hooks/filetype/php/200_smart_brace.vim +++ b/autoload/argwrap/hooks/filetype/php/200_smart_brace.vim @@ -3,7 +3,7 @@ function! s:dealWithMethodArguments(container) abort " {{{ return 0 endif - if a:container.prefix !~? '\v^%(public|protected|private)\s+function\s+\S+\s*\($' + if a:container.prefix !~? '\v^%(public|protected|private)(\s+static)?\s+function\s+\S+\s*\($' return 0 endif