Better GitHub Code Search for R with tree-sitter-r #120397
-
Select Topic AreaQuestion BodyHi GitHub Code Search team! I'm an employee of Posit, best known for RStudio and our collection of R packages like dplyr, tidyr, and the rest of the tidyverse. We'd really love to see improved code search for R, like how in these two C examples:
We've written a tree-sitter grammar that we are pretty happy with. It's current at the I imagine I probably need to write a Is there anything else you need? Once we have And in general I'm curious about the process of how things are kept up to date. Like, if we make an update or improvement in tree-sitter-r, how could that flow into your Code Search? Would we manually ping you about it to get things synced up? I've seen https://github.com/orgs/community/discussions/10934 by @dcreager and @colinwm, are there any other community guides that have been developed since then? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 19 replies
-
@DavisVaughan thanks for the suggestion. We'd be happy to add code navigation support for R. You are correct that having a |
Beta Was this translation helpful? Give feedback.
@DavisVaughan thanks for the suggestion. We'd be happy to add code navigation support for R. You are correct that having a
tags.scm
will make this much easier for us. Once that is done and the code is in your mainline, please let us know. The next step for us is to take yourtags.scm
and adapt it to our system (our pipeline requires certain names for the language elements returned by the query). Then the next time we rebuild our code search index, R symbols will be included.