aboutsummaryrefslogtreecommitdiffstats
path: root/tree-sitter-yts
diff options
context:
space:
mode:
Diffstat (limited to 'tree-sitter-yts')
-rw-r--r--tree-sitter-yts/.editorconfig10
-rw-r--r--tree-sitter-yts/.gitattributes10
-rw-r--r--tree-sitter-yts/.gitignore10
-rw-r--r--tree-sitter-yts/Cargo.toml10
-rw-r--r--tree-sitter-yts/bindings/rust/build.rs10
-rw-r--r--tree-sitter-yts/bindings/rust/lib.rs10
-rw-r--r--tree-sitter-yts/grammar.js10
-rw-r--r--tree-sitter-yts/package.json.license9
-rw-r--r--tree-sitter-yts/package.nix1
-rw-r--r--tree-sitter-yts/queries/highlights.scm1
-rw-r--r--tree-sitter-yts/src/grammar.json.license9
-rw-r--r--tree-sitter-yts/src/node-types.json.license9
-rw-r--r--tree-sitter-yts/src/parser.c12
-rw-r--r--tree-sitter-yts/src/tree_sitter/alloc.h12
-rw-r--r--tree-sitter-yts/src/tree_sitter/array.h12
-rw-r--r--tree-sitter-yts/src/tree_sitter/parser.h12
-rw-r--r--tree-sitter-yts/test/corpus/comments.txt.license1
-rw-r--r--tree-sitter-yts/test/corpus/comments_correct.txt.license1
-rw-r--r--tree-sitter-yts/test/corpus/duration.txt.license1
-rw-r--r--tree-sitter-yts/test/corpus/flags.txt.license1
-rw-r--r--tree-sitter-yts/test/corpus/flags_dash.txt.license1
-rw-r--r--tree-sitter-yts/test/corpus/missing_values.txt.license1
-rw-r--r--tree-sitter-yts/test/corpus/url.txt.license1
-rw-r--r--tree-sitter-yts/tree-sitter.json.license9
24 files changed, 163 insertions, 0 deletions
diff --git a/tree-sitter-yts/.editorconfig b/tree-sitter-yts/.editorconfig
index ff17b12..8eb1d80 100644
--- a/tree-sitter-yts/.editorconfig
+++ b/tree-sitter-yts/.editorconfig
@@ -1,3 +1,13 @@
+# yt - A fully featured command line YouTube client
+#
+# Copyright (C) 2026 Soispha Peetz <soispha@b-peetz.de>
+# SPDX-License-Identifier: GPL-3.0-or-later
+#
+# This file is part of Yt.
+#
+# You should have received a copy of the License along with this program.
+# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
+
root = true
[*]
diff --git a/tree-sitter-yts/.gitattributes b/tree-sitter-yts/.gitattributes
index 027ac70..145fdbf 100644
--- a/tree-sitter-yts/.gitattributes
+++ b/tree-sitter-yts/.gitattributes
@@ -1,3 +1,13 @@
+# yt - A fully featured command line YouTube client
+#
+# Copyright (C) 2026 Soispha Peetz <soispha@b-peetz.de>
+# SPDX-License-Identifier: GPL-3.0-or-later
+#
+# This file is part of Yt.
+#
+# You should have received a copy of the License along with this program.
+# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
+
* text=auto eol=lf
# Generated source files
diff --git a/tree-sitter-yts/.gitignore b/tree-sitter-yts/.gitignore
index 7c0cb7f..c683f11 100644
--- a/tree-sitter-yts/.gitignore
+++ b/tree-sitter-yts/.gitignore
@@ -1,3 +1,13 @@
+# yt - A fully featured command line YouTube client
+#
+# Copyright (C) 2026 Soispha Peetz <soispha@b-peetz.de>
+# SPDX-License-Identifier: GPL-3.0-or-later
+#
+# This file is part of Yt.
+#
+# You should have received a copy of the License along with this program.
+# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
+
# Rust artifacts
target/
diff --git a/tree-sitter-yts/Cargo.toml b/tree-sitter-yts/Cargo.toml
index a6c259c..304afd0 100644
--- a/tree-sitter-yts/Cargo.toml
+++ b/tree-sitter-yts/Cargo.toml
@@ -1,3 +1,13 @@
+# yt - A fully featured command line YouTube client
+#
+# Copyright (C) 2026 Soispha Peetz <soispha@b-peetz.de>
+# SPDX-License-Identifier: GPL-3.0-or-later
+#
+# This file is part of Yt.
+#
+# You should have received a copy of the License along with this program.
+# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
+
[package]
name = "tree-sitter-yts"
description = "Parser for yt's selection language"
diff --git a/tree-sitter-yts/bindings/rust/build.rs b/tree-sitter-yts/bindings/rust/build.rs
index 95250d7..e815dde 100644
--- a/tree-sitter-yts/bindings/rust/build.rs
+++ b/tree-sitter-yts/bindings/rust/build.rs
@@ -1,3 +1,13 @@
+// yt - A fully featured command line YouTube client
+//
+// Copyright (C) 2026 Soispha Peetz <soispha@b-peetz.de>
+// SPDX-License-Identifier: GPL-3.0-or-later
+//
+// This file is part of Yt.
+//
+// You should have received a copy of the License along with this program.
+// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
+
fn main() {
let src_dir = std::path::Path::new("src");
diff --git a/tree-sitter-yts/bindings/rust/lib.rs b/tree-sitter-yts/bindings/rust/lib.rs
index 35f14ce..cf14fb4 100644
--- a/tree-sitter-yts/bindings/rust/lib.rs
+++ b/tree-sitter-yts/bindings/rust/lib.rs
@@ -1,3 +1,13 @@
+// yt - A fully featured command line YouTube client
+//
+// Copyright (C) 2026 Soispha Peetz <soispha@b-peetz.de>
+// SPDX-License-Identifier: GPL-3.0-or-later
+//
+// This file is part of Yt.
+//
+// You should have received a copy of the License along with this program.
+// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
+
//! This crate provides YTS language support for the [tree-sitter] parsing library.
//!
//! Typically, you will use the [`LANGUAGE`] constant to add this language to a
diff --git a/tree-sitter-yts/grammar.js b/tree-sitter-yts/grammar.js
index cf76d78..57e587b 100644
--- a/tree-sitter-yts/grammar.js
+++ b/tree-sitter-yts/grammar.js
@@ -1,3 +1,13 @@
+// yt - A fully featured command line YouTube client
+//
+// Copyright (C) 2026 Soispha Peetz <soispha@b-peetz.de>
+// SPDX-License-Identifier: GPL-3.0-or-later
+//
+// This file is part of Yt.
+//
+// You should have received a copy of the License along with this program.
+// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
+
/**
* @file Parser for yt's selection language
* @author Benedikt Peetz <benedikt.peetz@b-peetz.de>
diff --git a/tree-sitter-yts/package.json.license b/tree-sitter-yts/package.json.license
new file mode 100644
index 0000000..7a17838
--- /dev/null
+++ b/tree-sitter-yts/package.json.license
@@ -0,0 +1,9 @@
+yt - A fully featured command line YouTube client
+
+Copyright (C) 2026 Soispha Peetz <soispha@b-peetz.de>
+SPDX-License-Identifier: GPL-3.0-or-later
+
+This file is part of Yt.
+
+You should have received a copy of the License along with this program.
+If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
diff --git a/tree-sitter-yts/package.nix b/tree-sitter-yts/package.nix
index 6582d64..9d5e8e4 100644
--- a/tree-sitter-yts/package.nix
+++ b/tree-sitter-yts/package.nix
@@ -1,6 +1,7 @@
# yt - A fully featured command line YouTube client
#
# Copyright (C) 2024 Benedikt Peetz <benedikt.peetz@b-peetz.de>
+# Copyright (C) 2026 Soispha Peetz <soispha@b-peetz.de>
# SPDX-License-Identifier: GPL-3.0-or-later
#
# This file is part of Yt.
diff --git a/tree-sitter-yts/queries/highlights.scm b/tree-sitter-yts/queries/highlights.scm
index e4ac040..8c5ed74 100644
--- a/tree-sitter-yts/queries/highlights.scm
+++ b/tree-sitter-yts/queries/highlights.scm
@@ -1,6 +1,7 @@
;;; yt - A fully featured command line YouTube client
;;;
;;; Copyright (C) 2024 Benedikt Peetz <benedikt.peetz@b-peetz.de>
+;;; Copyright (C) 2026 Soispha Peetz <soispha@b-peetz.de>
;;; SPDX-License-Identifier: GPL-3.0-or-later
;;;
;;; This file is part of Yt.
diff --git a/tree-sitter-yts/src/grammar.json.license b/tree-sitter-yts/src/grammar.json.license
new file mode 100644
index 0000000..7a17838
--- /dev/null
+++ b/tree-sitter-yts/src/grammar.json.license
@@ -0,0 +1,9 @@
+yt - A fully featured command line YouTube client
+
+Copyright (C) 2026 Soispha Peetz <soispha@b-peetz.de>
+SPDX-License-Identifier: GPL-3.0-or-later
+
+This file is part of Yt.
+
+You should have received a copy of the License along with this program.
+If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
diff --git a/tree-sitter-yts/src/node-types.json.license b/tree-sitter-yts/src/node-types.json.license
new file mode 100644
index 0000000..7a17838
--- /dev/null
+++ b/tree-sitter-yts/src/node-types.json.license
@@ -0,0 +1,9 @@
+yt - A fully featured command line YouTube client
+
+Copyright (C) 2026 Soispha Peetz <soispha@b-peetz.de>
+SPDX-License-Identifier: GPL-3.0-or-later
+
+This file is part of Yt.
+
+You should have received a copy of the License along with this program.
+If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
diff --git a/tree-sitter-yts/src/parser.c b/tree-sitter-yts/src/parser.c
index 95f9999..7ab41b2 100644
--- a/tree-sitter-yts/src/parser.c
+++ b/tree-sitter-yts/src/parser.c
@@ -1,3 +1,15 @@
+/*
+ * yt - A fully featured command line YouTube client
+ *
+ * Copyright (C) 2026 Soispha Peetz <soispha@b-peetz.de>
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ *
+ * This file is part of Yt.
+ *
+ * You should have received a copy of the License along with this program.
+ * If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
+ */
+
/* Automatically @generated by tree-sitter */
#include "tree_sitter/parser.h"
diff --git a/tree-sitter-yts/src/tree_sitter/alloc.h b/tree-sitter-yts/src/tree_sitter/alloc.h
index 1abdd12..bbf0012 100644
--- a/tree-sitter-yts/src/tree_sitter/alloc.h
+++ b/tree-sitter-yts/src/tree_sitter/alloc.h
@@ -1,3 +1,15 @@
+/*
+ * yt - A fully featured command line YouTube client
+ *
+ * Copyright (C) 2026 Soispha Peetz <soispha@b-peetz.de>
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ *
+ * This file is part of Yt.
+ *
+ * You should have received a copy of the License along with this program.
+ * If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
+ */
+
#ifndef TREE_SITTER_ALLOC_H_
#define TREE_SITTER_ALLOC_H_
diff --git a/tree-sitter-yts/src/tree_sitter/array.h b/tree-sitter-yts/src/tree_sitter/array.h
index 56fc8cd..fb22929 100644
--- a/tree-sitter-yts/src/tree_sitter/array.h
+++ b/tree-sitter-yts/src/tree_sitter/array.h
@@ -1,3 +1,15 @@
+/*
+ * yt - A fully featured command line YouTube client
+ *
+ * Copyright (C) 2026 Soispha Peetz <soispha@b-peetz.de>
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ *
+ * This file is part of Yt.
+ *
+ * You should have received a copy of the License along with this program.
+ * If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
+ */
+
#ifndef TREE_SITTER_ARRAY_H_
#define TREE_SITTER_ARRAY_H_
diff --git a/tree-sitter-yts/src/tree_sitter/parser.h b/tree-sitter-yts/src/tree_sitter/parser.h
index 858107d..8ff0447 100644
--- a/tree-sitter-yts/src/tree_sitter/parser.h
+++ b/tree-sitter-yts/src/tree_sitter/parser.h
@@ -1,3 +1,15 @@
+/*
+ * yt - A fully featured command line YouTube client
+ *
+ * Copyright (C) 2026 Soispha Peetz <soispha@b-peetz.de>
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ *
+ * This file is part of Yt.
+ *
+ * You should have received a copy of the License along with this program.
+ * If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
+ */
+
#ifndef TREE_SITTER_PARSER_H_
#define TREE_SITTER_PARSER_H_
diff --git a/tree-sitter-yts/test/corpus/comments.txt.license b/tree-sitter-yts/test/corpus/comments.txt.license
index d4d410f..137b792 100644
--- a/tree-sitter-yts/test/corpus/comments.txt.license
+++ b/tree-sitter-yts/test/corpus/comments.txt.license
@@ -1,6 +1,7 @@
yt - A fully featured command line YouTube client
Copyright (C) 2024 Benedikt Peetz <benedikt.peetz@b-peetz.de>
+Copyright (C) 2026 Soispha Peetz <soispha@b-peetz.de>
SPDX-License-Identifier: GPL-3.0-or-later
This file is part of Yt.
diff --git a/tree-sitter-yts/test/corpus/comments_correct.txt.license b/tree-sitter-yts/test/corpus/comments_correct.txt.license
index d4d410f..137b792 100644
--- a/tree-sitter-yts/test/corpus/comments_correct.txt.license
+++ b/tree-sitter-yts/test/corpus/comments_correct.txt.license
@@ -1,6 +1,7 @@
yt - A fully featured command line YouTube client
Copyright (C) 2024 Benedikt Peetz <benedikt.peetz@b-peetz.de>
+Copyright (C) 2026 Soispha Peetz <soispha@b-peetz.de>
SPDX-License-Identifier: GPL-3.0-or-later
This file is part of Yt.
diff --git a/tree-sitter-yts/test/corpus/duration.txt.license b/tree-sitter-yts/test/corpus/duration.txt.license
index d4d410f..137b792 100644
--- a/tree-sitter-yts/test/corpus/duration.txt.license
+++ b/tree-sitter-yts/test/corpus/duration.txt.license
@@ -1,6 +1,7 @@
yt - A fully featured command line YouTube client
Copyright (C) 2024 Benedikt Peetz <benedikt.peetz@b-peetz.de>
+Copyright (C) 2026 Soispha Peetz <soispha@b-peetz.de>
SPDX-License-Identifier: GPL-3.0-or-later
This file is part of Yt.
diff --git a/tree-sitter-yts/test/corpus/flags.txt.license b/tree-sitter-yts/test/corpus/flags.txt.license
index d4d410f..137b792 100644
--- a/tree-sitter-yts/test/corpus/flags.txt.license
+++ b/tree-sitter-yts/test/corpus/flags.txt.license
@@ -1,6 +1,7 @@
yt - A fully featured command line YouTube client
Copyright (C) 2024 Benedikt Peetz <benedikt.peetz@b-peetz.de>
+Copyright (C) 2026 Soispha Peetz <soispha@b-peetz.de>
SPDX-License-Identifier: GPL-3.0-or-later
This file is part of Yt.
diff --git a/tree-sitter-yts/test/corpus/flags_dash.txt.license b/tree-sitter-yts/test/corpus/flags_dash.txt.license
index d4d410f..137b792 100644
--- a/tree-sitter-yts/test/corpus/flags_dash.txt.license
+++ b/tree-sitter-yts/test/corpus/flags_dash.txt.license
@@ -1,6 +1,7 @@
yt - A fully featured command line YouTube client
Copyright (C) 2024 Benedikt Peetz <benedikt.peetz@b-peetz.de>
+Copyright (C) 2026 Soispha Peetz <soispha@b-peetz.de>
SPDX-License-Identifier: GPL-3.0-or-later
This file is part of Yt.
diff --git a/tree-sitter-yts/test/corpus/missing_values.txt.license b/tree-sitter-yts/test/corpus/missing_values.txt.license
index d4d410f..137b792 100644
--- a/tree-sitter-yts/test/corpus/missing_values.txt.license
+++ b/tree-sitter-yts/test/corpus/missing_values.txt.license
@@ -1,6 +1,7 @@
yt - A fully featured command line YouTube client
Copyright (C) 2024 Benedikt Peetz <benedikt.peetz@b-peetz.de>
+Copyright (C) 2026 Soispha Peetz <soispha@b-peetz.de>
SPDX-License-Identifier: GPL-3.0-or-later
This file is part of Yt.
diff --git a/tree-sitter-yts/test/corpus/url.txt.license b/tree-sitter-yts/test/corpus/url.txt.license
index d4d410f..137b792 100644
--- a/tree-sitter-yts/test/corpus/url.txt.license
+++ b/tree-sitter-yts/test/corpus/url.txt.license
@@ -1,6 +1,7 @@
yt - A fully featured command line YouTube client
Copyright (C) 2024 Benedikt Peetz <benedikt.peetz@b-peetz.de>
+Copyright (C) 2026 Soispha Peetz <soispha@b-peetz.de>
SPDX-License-Identifier: GPL-3.0-or-later
This file is part of Yt.
diff --git a/tree-sitter-yts/tree-sitter.json.license b/tree-sitter-yts/tree-sitter.json.license
new file mode 100644
index 0000000..7a17838
--- /dev/null
+++ b/tree-sitter-yts/tree-sitter.json.license
@@ -0,0 +1,9 @@
+yt - A fully featured command line YouTube client
+
+Copyright (C) 2026 Soispha Peetz <soispha@b-peetz.de>
+SPDX-License-Identifier: GPL-3.0-or-later
+
+This file is part of Yt.
+
+You should have received a copy of the License along with this program.
+If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.