From 058da0d71c1cccd69449cae5b5281e72eacb0af5 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 9 Jan 2013 00:07:24 -0500 Subject: [PATCH] Account for long ns doc strings --- plugin/foreplay.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/foreplay.vim b/plugin/foreplay.vim index eba2a53..347780b 100644 --- a/plugin/foreplay.vim +++ b/plugin/foreplay.vim @@ -865,8 +865,8 @@ function! foreplay#ns() abort while lnum < line('$') && getline(lnum) =~# '^\s*\%(;.*\)\=$' let lnum += 1 endwhile - let lines = join(getline(lnum, lnum+10), ' ') - let lines = substitute(lines, '"\%(\\.\|[^"]\)*"', '', 'g') + let lines = join(getline(lnum, lnum+50), ' ') + let lines = substitute(lines, '"\%(\\.\|[^"]\)*"\|\\.', '', 'g') let lines = substitute(lines, '\^\={[^{}]*}', '', '') let ns = matchstr(lines, '\C^(\s*\%(in-ns\s*''\|ns\s\+\)\zs[A-Za-z0-9_?*!+/=<>.-]\+\ze') if ns !=# ''