pstuifzand/tree-sitter-printf: Tree-sitter grammar for printf formatsTree sitter grammar for printf. Can be used to highlight format strings.

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.

Load more