Friday, December 18, 2020

Re: Vim8.2.2154 html filetype detection cause error incompatiblity with vim9script

On Fri, Dec 18, 2020 at 11:57 AM Ni Va <nivaemail@gmail.com> wrote:
>
> Hi,
>
> When opening html file in new buffer while my _vimrc is written in vim9script,
> this message appears:
>
> Messages maintainer: Bram Moolenaar
> "~\Desktop\filetype.vim.html" 2315L, 216123B
> Error detected while processing BufRead Autocommands for "*.html"..function dist#ft#FThtml[13]..FileType Autocommands for "html":
> E1126: Cannot use :let in Vim9 script
> E1126: Cannot use :let in Vim9 script

IOW, a script (without vim9script in it) sourced from an autocommand
triggered from Vim9 script is erroneously interpreted as if it were
itself a Vim9 script.

Best regards,
Tony.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJkCKXseZME9YJDCo2FuuM6_L9%2Bk1mQsHthfj-FzCAzjxYqGuw%40mail.gmail.com.

No comments: