Skip to content

Commit

Permalink
Fix merge_ftplugin()
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Jan 15, 2024
1 parent 17c8107 commit eba9fb6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions autoload/dein/parse.vim
Original file line number Diff line number Diff line change
Expand Up @@ -420,16 +420,11 @@ function! s:generate_dummy_mappings(plugin) abort
endfor
endfunction
function! s:merge_ftplugin(ftplugin) abort
const pattern_vim = '\n\s*\\\|\%(^\|\n\)\s*"[^\n]*'
const pattern_lua = '\n\s*\\\|\%(^\|\n\)\s*--[^\n]*'
for [ft, val] in a:ftplugin->items()
if ft->stridx('lua_') == 0
let val = val->substitute(pattern_lua, '', 'g')
" Convert lua_xxx keys
let ft = ft->substitute('^lua_', '', '')
let val = "lua <<EOF\n" .. val .. "\nEOF"
else
let val = val->substitute(pattern_vim, '', 'g')
endif

if !(g:dein#ftplugin->has_key(ft))
Expand Down

0 comments on commit eba9fb6

Please sign in to comment.