handle 2.4 router:debug output

This commit is contained in:
Klein Florian 2013-12-24 15:46:21 +01:00
parent 4b7f4f7e47
commit b3c9ba0f9f

View File

@ -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