From b3c9ba0f9f4de06f387cfb85d11b84a6a405d1e4 Mon Sep 17 00:00:00 2001 From: Klein Florian Date: Tue, 24 Dec 2013 15:46:21 +0100 Subject: [PATCH] handle 2.4 router:debug output --- plugin/symfonycomplete.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/symfonycomplete.vim b/plugin/symfonycomplete.vim index d47b935..6316dfa 100644 --- a/plugin/symfonycomplete.vim +++ b/plugin/symfonycomplete.vim @@ -38,10 +38,10 @@ fun! CompleteSymfonyRouter(base, res) for m in split(output, "\n") let row = split(m) - if len(row) == 3 - let [route, method, url] = row + if len(row) == 5 + let [route, method, scheme, host, url] = row if route =~ '^' . a:base - let menu = 'method: '. method .', url: '. url + let menu = method.' '.scheme.' '.host.' '.url call add(a:res, { 'word': route, 'menu': menu }) endif endif