From c8eaf2f2adc3f0eea3302154d2e11daa2657f7c8 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 25 Dec 2012 11:53:12 -0500 Subject: [PATCH] Prefer ns declaration to position in class path --- plugin/foreplay.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/foreplay.vim b/plugin/foreplay.vim index e4cef00..2cd86c9 100644 --- a/plugin/foreplay.vim +++ b/plugin/foreplay.vim @@ -826,7 +826,7 @@ function! foreplay#ns() abort while lnum < line('$') && getline(lnum) =~# '^\s*\%(;.*\)\=$' let lnum += 1 endwhile - let ns = matchstr(getline(lnum), '\C^(in-ns ''\zs\k\+\ze)') + let ns = matchstr(getline(lnum), '\C^(\s*\%(in-ns\s*''\|ns\s\+\)\zs\k\+\ze') if ns !=# '' return ns endif