From 1fa30f77ebee6ec8b8ec31e63747eab37f61a499 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 2 Jan 2013 19:09:53 -0500 Subject: [PATCH] Don't rely on iskeyword to determine namespace Workaround for #24 and #25. --- plugin/foreplay.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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