Skip to content

Conversation

@kkilchrist
Copy link

@kkilchrist kkilchrist commented Dec 30, 2025

Description

Add R and XML language support with full syntax highlighting.

R language enables R code editing with proper highlighting for:

  • Functions, variables, and parameters
  • Operators (including R-specific <-, <<-, |>, etc.)
  • Keywords, control flow, and constants
  • Roxygen2 documentation comments (#')
  • Shebang detection for Rscript

XML language enables XML/XSLT/SVG/plist editing with proper highlighting for:

  • Tags, attributes, and values
  • Processing instructions
  • Entity references
  • Comments and CDATA sections
  • DTD declarations

Both tested and verified working for extracting symbols by name.

Also adds a "Building the Framework" section to README with troubleshooting for the xcode-select build error that can occur when running build_framework.sh.

Related Issues

Checklist

  • I read and understood the contributing guide as well as the code of conduct
  • The issues this PR addresses are related to each other
  • My changes generate no new warnings
  • My code builds and runs on my machine
  • My changes are all related to the related issue above
  • I documented my code

Screenshots

N/A - not UI related

kkilchrist and others added 4 commits December 29, 2025 22:14
Add tree-sitter R language support including:
- TreeSitterLanguage enum case
- CodeLanguage definition with .r/.R extensions
- TreeSitterModel query support
- Syntax highlighting queries from tree-sitter-r
- Container header declaration
- Unit tests for language detection and query loading

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Add TreeSitterR SPM dependency to CodeLanguages-Container
- Rebuild xcframework with R parser included
- Add additional R query files (locals, tags, describe, test_that)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Add R to supported languages table
- Add troubleshooting section for xcode-select build error

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Add tree-sitter XML language support including:
- TreeSitterLanguage enum case
- CodeLanguage definition with extensions (.xml, .xsl, .xslt, .xsd, .svg, .plist)
- TreeSitterModel query support
- Syntax highlighting queries
- Container header declaration
- Unit tests for language detection and query loading
- README update

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@kkilchrist kkilchrist changed the title Add R language support Add R and XML language support Dec 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

❇️ Add R language support ❇️ Add XML support

1 participant