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 017bdde
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 0 deletions.
27 changes: 27 additions & 0 deletions modules/tree-sitter/0.22.5/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright 2024 github.com/zadlg
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http:#www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"zadlg/tree-sitter-bazel"

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

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")
18 changes: 18 additions & 0 deletions modules/tree-sitter/0.22.5/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
matrix:
platform:
- centos7
- debian10
- macos
- macos_arm64
- ubuntu2004
bazel:
- 7.x
- 6.x

tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
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/releases/download/v0.22.5/tree-sitter.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 017bdde

Please sign in to comment.