georgewfraser / vscode-tree-sitter

Accurate syntax coloring for VSCode using tree-sitter
MIT License
178 stars 25 forks source link

[Bug] [Rust] No bracket matching for generics #5

Open lnicola opened 5 years ago

lnicola commented 5 years ago
struct Baz { x: Vec<u8> }

Matching works for {, but not for <:

image

image

georgewfraser commented 5 years ago

I think this is possible by registering a DocumentHighlightProvider

There are lots of nice features that can be implemented by leveraging the richer syntax tree of tree-sitter: https://github.com/georgewfraser/vscode-tree-sitter/blob/master/TODO.md