diff --git a/plugin/foreplay.vim b/plugin/foreplay.vim index 2832575..d070218 100644 --- a/plugin/foreplay.vim +++ b/plugin/foreplay.vim @@ -811,7 +811,7 @@ function! foreplay#ns() abort while lnum < line('$') && getline(lnum) =~# '^\s*\%(;.*\)\=$' let lnum += 1 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 !=# '' return ns endif