codedb has no support for R (.r / .R files). Users with R projects receive no code intelligence — no outline, no symbol search, no import tracking.
Proposed Solution
Add a line-by-line R parser (parseRLine) following the existing pattern used by Ruby, Go, PHP, etc.:
- Functions:
<- function( and = function( assignment patterns
- Anonymous functions: bare
function( at line start
- S4 classes:
setClass("ClassName")
- Reference classes:
setRefClass("ClassName")
- R6 classes:
R6Class(classname = "...") (single-line)
- Imports:
library(pkg) and require(pkg)
- Comments:
# prefix (same as Python/Ruby)
Files: src/explore.zig, src/telemetry.zig, src/tests.zig
Expected
.r and .R files are indexed with correct language detection
- Functions, classes, and imports are extracted from R source
codedb has no support for R (
.r/.Rfiles). Users with R projects receive no code intelligence — no outline, no symbol search, no import tracking.Proposed Solution
Add a line-by-line R parser (
parseRLine) following the existing pattern used by Ruby, Go, PHP, etc.:<- function(and= function(assignment patternsfunction(at line startsetClass("ClassName")setRefClass("ClassName")R6Class(classname = "...")(single-line)library(pkg)andrequire(pkg)#prefix (same as Python/Ruby)Files:
src/explore.zig,src/telemetry.zig,src/tests.zigExpected
.rand.Rfiles are indexed with correct language detection