Skip to content

Commit

Permalink
feat: add support for r (#2030)
Browse files Browse the repository at this point in the history
* feat: add config for `r`

* docs: add R to supported languages

* Update website/docs/programming-languages.md

---------

Co-authored-by: Meng Zhang <[email protected]>
  • Loading branch information
winstxnhdw and wsxiaoys authored May 2, 2024
1 parent 28cf9ea commit b71f9c5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/tabby-common/assets/languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,12 @@ top_level_keywords = [
"type",
]

[[config]]
languages = ["r"]
exts = ["R", "r"]
line_comment = "#"
top_level_keywords = ["function", "library", "install.packages"]

[[config]]
languages = ["css"]
exts = ["css"]
Expand Down Expand Up @@ -281,4 +287,4 @@ exts = ["tex"]

[[config]]
languages = ["vb"]
exts = ["vb"]
exts = ["vb"]
1 change: 1 addition & 0 deletions website/docs/programming-languages.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ For an actual example of an issue or pull request adding the above support, plea
* [PHP](https://www.php.net/)
* [C#](https://learn.microsoft.com/en-us/dotnet/csharp/)
* [Solidity](https://soliditylang.org/): Since v0.10.0
* [R](https://www.r-project.org/): Since v0.12.0

## Languages Missing Certain Support

Expand Down

0 comments on commit b71f9c5

Please sign in to comment.