Treesitter parser (#2902)

A push towards better editor support.
See utils/treesitter/README.md

---------

Co-authored-by: josh11b <josh11b@users.noreply.github.com>
This commit is contained in:
mx42
2023-07-13 18:28:28 +00:00
committed by GitHub
co-authored by josh11b
parent 9751b4701d
commit 1cab6920f2
14 changed files with 1022 additions and 1 deletions
+2
View File
@@ -147,6 +147,8 @@ def get_rules(bazel: str, targets: str, keep_going: bool) -> Dict[str, Rule]:
elif rule_class == "genrule":
if list_name == "outs":
outs = get_bazel_list(list_child, True)
elif rule_class == "tree_sitter_cc_library":
continue
else:
exit(f"unexpected rule type: {rule_class}")
rules[rule_name] = Rule(hdrs, srcs, deps, outs)