Errors in $VIMRUNTIME/autoload/dist/ft.vim at patchlevel 9.0.376

25 views
Skip to first unread message

Tony Mechelynck

unread,
Sep 4, 2022, 8:30:49 AM9/4/22
to Bram Moolenaar, vim_dev
This did not happen at patchlevel 372

Error detected while processing command line..script
/root/Session.vim[12]..BufRead Autocommands for "*.htm"..script
/usr/local/share/vim/vim90/autoload/dist/ft.vim:
line 114:
E15: Invalid expression: " '')"
E475: Invalid argument: default = '')
Error detected while processing command line..script
/root/Session.vim[12]..BufRead Autocommands for "*.htm":
E117: Unknown function: dist#ft#FThtml

The first one comes from

export def BindzoneCheck(default = '')
if getline(1) .. getline(2) .. getline(3) .. getline(4)
=~ '^; <<>> DiG [0-9.]\+.* <<>>\|$ORIGIN\|$TTL\|IN\s\+SOA'
setf bindzone
elseif default != ''
exe 'setf ' .. default
endif
enddef

This script has "vim9script" at top but my own vimrc and owncoded
Session.vim are written in pre-vim9 script language.


Best regards,
Tony.

Bram Moolenaar

unread,
Sep 4, 2022, 10:58:08 AM9/4/22
to vim...@googlegroups.com, Tony Mechelynck
Fixed with 9.9.0377. Skipping over white space used the wrong pointer.

--
I learned the customs and mannerisms of engineers by observing them, much the
way Jane Goodall learned about the great apes, but without the hassle of
grooming.
(Scott Adams - The Dilbert principle)

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages