Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
tclem
· 5y ago · 0 comments
So what's cool is that while we don't handle that during parsing, you can use another set of tree-sitter features to do tree queries to achieve this. Here's the query for detecting Ruby locals:
https://github.com/tree-sitter/tree-sitter-ruby/blob/32cd5a0...
and here's some better documentation for how the query language works:
https://tree-sitter.github.io/tree-sitter/syntax-highlightin...
.
Comments
No comments yet.
Better HN