Updated includeexpr to parse \space's

This commit is contained in:
Karl Yngve Lervåg 2015-04-01 15:57:02 +02:00
parent 97f0fa45b8
commit ef80217ffc

View File

@ -143,7 +143,9 @@ function! s:init_options() " {{{1
let &l:define .= '\|DeclareMathOperator\s*{\=\s*'
let &l:include = '\\\(input\|include\){'
let &l:includeexpr = "substitute(v:fname, '^.\\{-}{\\|}.*', '', 'g')"
let &l:includeexpr = 'substitute('
let &l:includeexpr .= "substitute(v:fname, '\\\\space', '', 'g'),"
let &l:includeexpr .= "'^.\\{-}{\"\\?\\|\"\\?}.*', '', 'g')"
let &cpo = s:save_cpo
unlet s:save_cpo