tree-sitter / tree-sitter-go

Go grammar for tree-sitter
MIT License
310 stars 65 forks source link

Disambiguate string print verbs. #89

Closed ameddin73 closed 2 years ago

ameddin73 commented 2 years ago

Currently, the only substring that gets a group is escape_sequence. Go has a collection of "verbs" you can see in the fmt package that should be highlighted as well in their own like print_verb.

It's very difficult to disambiguate placeholders in a string without syntax highlighting. Here the escape rune is easy to find, but not the print verb. image

ameddin73 commented 2 years ago

realized a pr was just opened.