Skip to content

Commit 344eb8b

Browse files
authored
Add tree-sitter-bazel 0.22.5. (#1860)
Add tree-sitter-bazel 0.22.5. 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
1 parent 325e2a7 commit 344eb8b

File tree

4 files changed

+62
-0
lines changed

4 files changed

+62
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Copyright 2024 github.com/zadlg
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http:#www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
"zadlg/tree-sitter-bazel"
16+
17+
module(
18+
name = "tree-sitter-bazel",
19+
version = "0.22.5",
20+
compatibility_level = 1,
21+
repo_name = "tree-sitter-bazel",
22+
)
23+
24+
bazel_dep(name = "bazel_skylib", version = "1.5.0")
25+
26+
tree_sitter_source_code = use_extension(":extensions.bzl", "tree_sitter_source_code")
27+
use_repo(tree_sitter_source_code, "tree-sitter-raw")
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
matrix:
2+
platform:
3+
- centos7
4+
- debian10
5+
- macos
6+
- macos_arm64
7+
- ubuntu2004
8+
bazel:
9+
- 7.x
10+
- 6.x
11+
12+
tasks:
13+
verify_targets:
14+
name: Verify build targets
15+
platform: ${{ platform }}
16+
bazel: ${{ bazel }}
17+
build_targets:
18+
- '@tree-sitter-bazel//:tree-sitter'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"url": "https://github.com/zadlg/tree-sitter-bazel/releases/download/v0.22.5/tree-sitter.tar.gz",
3+
"integrity": "sha384-630xAIInHTaA4EjLjNePCHYeAvL5dP/0pOdgu8rrGNz7RzJjkvjjX2BlkD6ZAO+M",
4+
"strip_prefix": "tree-sitter-bazel-0.22.5"
5+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"homepage": "https://github.com/zadlg/tree-sitter-bazel",
3+
"maintainers": [
4+
{
5+
"github": "zadlg",
6+
"name": "zadig"
7+
}
8+
],
9+
"repository": ["github:zadlg/tree-sitter-bazel"],
10+
"versions": ["0.22.5"],
11+
"yanked_versions": {}
12+
}

0 commit comments

Comments
 (0)