nvim -V9mynvim.log
#NeoVIM #VIM #Debug #til
@jonn I guess there should be a space between 9 and m right?
@petrisch nah, it works like this. :D
@jonn oh really? Interesting..
@petrisch I prefer such parsing style. Imagine writing `rsync -P -a -v -e ...` versus `rsync -Pave ...`.
@jonn sure but isn't mynvim.log the filename?
@petrisch it is! And 9 is the argument to verbose key. Some old-school #UNIX tools would not tokenise their parses and just go left to right.
One can easily imagine a parser that doesn't tokenise!
Combinatorially:
```(string "-V" <> many (string " ") <> number <> many (string " ")) *> filename```
Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy. Stay safe. Please abide by our code of conduct. (Source code)
@petrisch it is! And 9 is the argument to verbose key. Some old-school #UNIX tools would not tokenise their parses and just go left to right.
One can easily imagine a parser that doesn't tokenise!
Combinatorially:
```
(string "-V" <> many (string " ") <> number <> many (string " ")) *> filename
```