From 161210a19eb4dbdc81d40f61417ded6d03215c16 Mon Sep 17 00:00:00 2001 From: Lycs-D <139197676+Lycs-D@users.noreply.github.com> Date: Thu, 21 Mar 2024 04:33:27 +0800 Subject: [PATCH] Link c/tree-sitter-v.h to v/tree-sitter-v.h --- tree_sitter_v/.gitattributes | 1 + tree_sitter_v/bindings.v | 2 +- tree_sitter_v/bindings/v/tree-sitter-v.h | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 120000 tree_sitter_v/bindings/v/tree-sitter-v.h diff --git a/tree_sitter_v/.gitattributes b/tree_sitter_v/.gitattributes index 0361b6cc..777fcac4 100644 --- a/tree_sitter_v/.gitattributes +++ b/tree_sitter_v/.gitattributes @@ -1,4 +1,5 @@ grammar.js symlink=file +bindings/v/tree-sitter-v.h symlink=file bindings/c/* linguist-generated diff --git a/tree_sitter_v/bindings.v b/tree_sitter_v/bindings.v index 514afa9d..a67ea25a 100644 --- a/tree_sitter_v/bindings.v +++ b/tree_sitter_v/bindings.v @@ -4,7 +4,7 @@ import x.json2 import os import v_tree_sitter.tree_sitter -#flag -I @VMODROOT/bindings/c +#flag -I @VMODROOT/bindings/v #flag -I @VMODROOT/src #flag @VMODROOT/src/parser.c diff --git a/tree_sitter_v/bindings/v/tree-sitter-v.h b/tree_sitter_v/bindings/v/tree-sitter-v.h new file mode 120000 index 00000000..337a0798 --- /dev/null +++ b/tree_sitter_v/bindings/v/tree-sitter-v.h @@ -0,0 +1 @@ +../c/tree-sitter-v.h \ No newline at end of file