Christian J. Robinson wrote:

>     vim9script
>  
>     def Foo()
>         echo "bar"
>     enddef
>  
>     nmap <leader>foo :vim9cmd <SID>Foo()<CR>
>  
> This results in the error:
> E1144: Command "<" is not followed by white space: <SNR>93_Foo()
>  
> If I use this instead, it works:
>     nmap <leader>foo :vim9cmd call <SID>Foo()<CR>
>  
> Is this intended behavior?

The parsing wasn't prepared for encountering <SNR> at the start of a
command.  That can be fixed.

-- 
"After a few years of marriage a man can look right at a woman
without seeing her and a woman can see right through a man
without looking at him."
 - Helen Rowland

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202107261910.16QJAdbl1399570%40masaka.moolenaar.net.

Raspunde prin e-mail lui