Don't rely on iskeyword to determine namespace
Workaround for #24 and #25.
This commit is contained in:
parent
5e0d266ae4
commit
1fa30f77eb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user