Don't rely on iskeyword to determine namespace

Workaround for #24 and #25.
This commit is contained in:
Tim Pope 2013-01-02 19:09:53 -05:00
parent 5e0d266ae4
commit 1fa30f77eb

View File

@ -811,7 +811,7 @@ function! foreplay#ns() abort
while lnum < line('$') && getline(lnum) =~# '^\s*\%(;.*\)\=$' while lnum < line('$') && getline(lnum) =~# '^\s*\%(;.*\)\=$'
let lnum += 1 let lnum += 1
endwhile endwhile
let ns = matchstr(getline(lnum), '\C^(\s*\%(in-ns\s*''\|ns\s\+\)\zs\k\+\ze') let ns = matchstr(getline(lnum), '\C^(\s*\%(in-ns\s*''\|ns\s\+\)\zs[A-Za-z0-9_?*!+/=<>.-]\+\ze')
if ns !=# '' if ns !=# ''
return ns return ns
endif endif