vim-vimlparser
vim-vimlparser copied to clipboard
Vim script parser
Currently * `s:VimLParser.neovim_additional_commands` * `s:VimLParser.neovim_removed_commands` is managed manually. neovim supports `nvim_get_commands()` listing available commands. So it can automate by adding script diffing command list. ## Ref https://github.com/vim-jp/vim-vimlparser/issues/118#issuecomment-513278223 > However, `nvim_get_commands`...
TODO: * Check supported vim version * API to get comment position and content (any ideas?)
`endfunction` の後の行の解析が捨てられているようです. ```vim function! Hoo() abort echo 3 endfunction | echo 2345 if 1 echo 4 endif | echo 456 ``` なファイルを対象に `vimlparser#test()` すると、以下が出力され, `(echo 2345)` がありません ```lsp (function (Hoo)...
vim-vimlparse cannot parse the script, but Vim can run it well: ```viml let s:inline_python = 'python
```vim function! s:foo() if v:true let s = 1 else let s = 2 endif endfunction ``` This script is translated to ```lisp (function (s:foo) (if v:true (let = s...
vint cannot lint py/pycompiler.vim / js/jscompiler.vim properly, because they are using a hack to import the `s:` scope of another file (`call extend(s:, vimlparser#import())`). `vimlint` is able to parse this,...
We should test command definition. Add tests with possible lines like below. ``` :'
``` :echo : ``` Vim throw two errors for this statement. ``` E121: Undefined variable: : E15: Invalid expression: : ``` https://github.com/vim-jp/vim-vimlparser/blob/b5f83738ba1baf012b9910487e5e38d577a916a5/autoload/vimlparser.vim#L3391 If modify this part to `1`, error E121...