lacygoill (Vim Github Repository) wrote:

    did you detect this by luck or do you have an automated way of
    finding whether the doc is inconsistent with the actual command
    being run?

I guess it's a bit of both (luck + automated way). I'm rewriting the default Vim syntax plugin to get a better highlighting in Vim9 scripts (e.g. the types are not highlighted). In doing so, I'm trying to build programmatically the command responsible for the |vimCommand| syntax group. For the moment, this is what I have:

     #TODO: Whyis  `mapclear`in  `vimMap`while  `vmapclear`is  in  `vimCommand`?
     var  to_remove:list<string>  =<<trim  END
         a[ppend]

That's an easy one to explain: I didn't notice it before, and no one mentioned it. I've adjusted my mkvimvim script to no longer accept vmapc[lear] and have put it into vimMap. v8.2-05 will have those changes, and I've uploaded an ASTRO-ONLY version to my website (http://www.drchip.org/astronaut/vim/index.html#SYNTAX_VIM).

I wrote a script which generates the first portion of syntax/vim.vim; generated syntax is based on the documentation. In the case of vimCommands, it extracts all potential commands and then removes those which are explicitly mentioned in the second portion (or in one of the other keyword groups). I do it this way because vim is and has been a moving target, constantly getting new commands, and Bram is very good at keeping the documentation up-to-date.

The syntax for vimCommands and other generated syntax makes them keywords for speed during use and loading of syntax/vim.vim. Its already > 75K.

Chip Campbell

--
--
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/9ab8305d-1df5-c04b-7be2-301c777207e0%40drchip.org.

Raspunde prin e-mail lui