Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add r treesitter #97

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# For generating .wasm files for parsers
# See https://www.npmjs.com/package/web-tree-sitter
LANGUAGES = agda bash c c-sharp clojure cpp css dart elm elixir gleam go haskell hcl html java javascript json julia kotlin latex lua markdown nix perl php python query ruby rust scala scss sparql swift talon tsx typescript xml yaml
LANGUAGES = agda bash c c-sharp clojure cpp css dart elm elixir gleam go haskell hcl html java javascript json julia kotlin latex lua markdown nix perl php python query r ruby rust scala scss sparql swift talon tsx typescript xml yaml

# Build web-tree-sitter parsers for $(LANGUAGES)

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -50,6 +50,7 @@
"onLanguage:perl",
"onLanguage:php",
"onLanguage:python",
"onLanguage:r",
"onLanguage:ruby",
"onLanguage:rust",
"onLanguage:scala",
@@ -123,6 +124,7 @@
"tree-sitter-php": "github:tree-sitter/tree-sitter-php#4f124bc6075e1c3333e80190c1c170933ed72c95",
"tree-sitter-python": "github:tree-sitter/tree-sitter-python#71778c2a472ed00a64abf4219544edbf8e4b86d7",
"tree-sitter-query": "github:nvim-treesitter/tree-sitter-query#5217c6805c09f8fc00ed13d17d5fcb791437aee6",
"tree-sitter-r": "^1.1.0",
"tree-sitter-ruby": "github:tree-sitter/tree-sitter-ruby#dc2d7d6b50f9975bc3c35bbec0ba11b2617b736b",
"tree-sitter-rust": "github:tree-sitter/tree-sitter-rust#36ae187ed6dd3803a8a89dbb54f3124c8ee74662",
"tree-sitter-scala": "github:tree-sitter/tree-sitter-scala#master",
1 change: 1 addition & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
@@ -40,6 +40,7 @@ const languages: {
perl: { module: "tree-sitter-perl" },
php: { module: "tree-sitter-php" },
python: { module: "tree-sitter-python" },
r: { module: "tree-sitter-r" },
ruby: { module: "tree-sitter-ruby" },
rust: { module: "tree-sitter-rust" },
scala: { module: "tree-sitter-scala" },
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -2150,6 +2150,11 @@ tree-sitter-css@^0.19.0:
dependencies:
nan "^2.14.2"

tree-sitter-r@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/tree-sitter-r/-/tree-sitter-r-1.1.0.tgz#5fc0b854754b9a2aa5ebfe2feea577455d5d1f2f"
integrity sha512-dYYlIPiJjNlkldagvissXUiXQpEzyHUs1sAjsWmPM7KhVmrzS8M+O9LAa/o7CiZN6sP63ReH1nM6qmx+Wfbhbg==

"tree-sitter-ruby@github:tree-sitter/tree-sitter-ruby#dc2d7d6b50f9975bc3c35bbec0ba11b2617b736b":
version "0.21.0"
resolved "https://codeload.github.com/tree-sitter/tree-sitter-ruby/tar.gz/dc2d7d6b50f9975bc3c35bbec0ba11b2617b736b"