Peter Stuifzand Notes on software, small tools, and the open web.

Tagged neovim

19:41

I created a tree-sitter grammar for printf. It's a few lines of code. Then I added a few…

I created a tree-sitter grammar for printf. It's a few lines of code. Then I added a few queries to neovim to inject this new grammar in Go for Printf, Sprintf, Fprintf and Errorf. And now it highlights the "%s" in the format string.