Skip to content

Commit

Permalink
Add tree-sitter 0.22.5.
Browse files Browse the repository at this point in the history
See [`tree-sitter-bazel`] and [`tree-sitter-bazel` v0.22.5].

I attempted to integrate Bazel into the original repo (see tree-sitter/tree-sitter#3312),
but tree-sitter maintainers are not willing to do so, so I decided to create
my own repo for this purpose.

[`tree-sitter-bazel`]: https://github.com/zadlg/tree-sitter-bazel
[`tree-sitter-bazel` v0.22.5]: https://github.com/zadlg/tree-sitter-bazel/releases/tag/v0.22.5
  • Loading branch information
zadlg committed Apr 23, 2024
1 parent 325e2a7 commit a0ab8d2
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
12 changes: 12 additions & 0 deletions modules/tree-sitter/0.22.5/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"zadlg/tree-sitter"

module(
name = "tree-sitter",
version = "0.22.5",
compatibility_level = 1,
)

bazel_dep(name = "bazel_skylib", version = "1.5.0")

tree_sitter_source_code = use_extension(":extensions.bzl", "tree_sitter_source_code")
use_repo(tree_sitter_source_code, "tree-sitter-raw")
9 changes: 9 additions & 0 deletions modules/tree-sitter/0.22.5/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
matrix:
platform: ["centos7", "debian10", "macos", "ubuntu2004"]

tasks:
verify_targets:
name: "Verify build targets"
platform: ${{ platform }}
build_targets:
- '@tree-sitter//:tree-sitter'
5 changes: 5 additions & 0 deletions modules/tree-sitter/0.22.5/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"url": "https://github.com/zadlg/tree-sitter-bazel/archive/refs/tags/v0.22.5.tar.gz",
"integrity": "sha384-prerraJTyL0ko7Pw4OkSeJRW02yYM4eP7HbXyTb5osQSp0erNOyBuTzCy9OPst3e",
"strip_prefix": "tree-sitter-bazel-0.22.5"
}
12 changes: 12 additions & 0 deletions modules/tree-sitter/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"homepage": "https://github.com/zadlg/tree-sitter-bazel",
"maintainers": [
{
"github": "zadlg",
"name": "zadig"
}
],
"repository": ["github:zadlg/tree-sitter-bazel"],
"versions": ["0.22.5"],
"yanked_versions": {}
}

0 comments on commit a0ab8d2

Please sign in to comment.