Shougo / dein.vim

:zap: Dark powered Vim/Neovim plugin manager
MIT License
3.42k stars 197 forks source link

E723 occurs when there is a line continuation in the argument of extend() in a file read by hooks_files #503

Closed hokorobi closed 1 year ago

hokorobi commented 1 year ago

Description

The error in the screenshot appears when starting with vimrc, described below.

To Reproduce

gvim.exe -N -u ~/vimfiles/vimrc-min-dein-hooks_file -U NONE -i NONE

Expected behavior

Starts without error.

Screenshots

image Ignore the "OFF" in screenshot.

Desktop:

Minimal Config

~/vimfiles/vimrc-min-dein-hooks_file

set nocompatible
set runtimepath+=C:\Users\hokorobi\_vim\dein\repos\github.com\Shougo\dein.vim
let g:testdic = {}
call dein#begin('~/_vim/dein')
call dein#add('tweekmonster/helpful.vim', #{
      \ hooks_file: '~/vimfiles/vimrc-min-dein-hooks_file_helpful.vim',
      \ })
call dein#end()
filetype plugin indent on
syntax enable

~/vimfiles/vimrc-min-dein-hooks_file_helpful.vim

" hook_add {{{
call extend(g:testdic, #{
   \ test: 'test',
   \})
" }}}
hokorobi commented 1 year ago

The line feed code for both files is LF.

hokorobi commented 1 year ago

The same result with CRLF.

Shougo commented 1 year ago

Fixed.