Skip to content

feat: Add R language support #215

@sims1253

Description

@sims1253

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions