mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-22 19:02:39 +00:00
A push towards better editor support. See utils/treesitter/README.md --------- Co-authored-by: josh11b <josh11b@users.noreply.github.com>
30 lines
722 B
Python
30 lines
722 B
Python
# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
# Exceptions. See /LICENSE for license information.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
load("@rules_tree_sitter//tree_sitter:tree_sitter.bzl", "tree_sitter_cc_library")
|
|
|
|
tree_sitter_cc_library(
|
|
name = "treesitter",
|
|
srcs = ["src/scanner.c"],
|
|
grammar = ["grammar.js"],
|
|
)
|
|
|
|
cc_binary(
|
|
name = "test_runner",
|
|
srcs = ["test_runner.cpp"],
|
|
deps = [
|
|
":treesitter",
|
|
],
|
|
)
|
|
|
|
cc_test(
|
|
name = "explorer_tests",
|
|
srcs = ["test_runner.cpp"],
|
|
args = ["$(locations //explorer:treesitter_testdata)"],
|
|
data = ["//explorer:treesitter_testdata"],
|
|
deps = [
|
|
":treesitter",
|
|
],
|
|
)
|