From 2df1ce51ff25c114011e1d01dbb0b6b6da7b2c1a Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Mon, 4 Nov 2024 21:26:41 +0100 Subject: chore(tree-sitter-yts): Add copyright headers --- tree-sitter-yts/.editorconfig | 10 ++++++++++ tree-sitter-yts/.gitignore | 10 ++++++++++ tree-sitter-yts/Cargo.toml | 10 ++++++++++ tree-sitter-yts/binding.gyp.license | 9 +++++++++ tree-sitter-yts/bindings/node/binding.cc | 10 ++++++++++ tree-sitter-yts/bindings/node/index.js | 10 ++++++++++ tree-sitter-yts/bindings/rust/build.rs | 10 ++++++++++ tree-sitter-yts/bindings/rust/lib.rs | 10 ++++++++++ tree-sitter-yts/corpus/comments.txt.license | 9 +++++++++ tree-sitter-yts/corpus/comments_correct.txt.license | 9 +++++++++ tree-sitter-yts/corpus/duration.txt.license | 9 +++++++++ tree-sitter-yts/corpus/flags.txt.license | 9 +++++++++ tree-sitter-yts/corpus/flags_dash.txt.license | 9 +++++++++ tree-sitter-yts/corpus/url.txt.license | 9 +++++++++ tree-sitter-yts/grammar.js | 10 ++++++++++ tree-sitter-yts/highlight_sample.yts.license | 9 +++++++++ tree-sitter-yts/package.json.license | 9 +++++++++ tree-sitter-yts/package.nix | 10 ++++++++++ tree-sitter-yts/queries/highlights.scm | 10 ++++++++++ tree-sitter-yts/src/grammar.json.license | 9 +++++++++ tree-sitter-yts/src/node-types.json.license | 9 +++++++++ tree-sitter-yts/src/parser.c | 12 ++++++++++++ tree-sitter-yts/src/tree_sitter/parser.h | 12 ++++++++++++ 23 files changed, 223 insertions(+) create mode 100644 tree-sitter-yts/binding.gyp.license create mode 100644 tree-sitter-yts/corpus/comments.txt.license create mode 100644 tree-sitter-yts/corpus/comments_correct.txt.license create mode 100644 tree-sitter-yts/corpus/duration.txt.license create mode 100644 tree-sitter-yts/corpus/flags.txt.license create mode 100644 tree-sitter-yts/corpus/flags_dash.txt.license create mode 100644 tree-sitter-yts/corpus/url.txt.license create mode 100644 tree-sitter-yts/highlight_sample.yts.license create mode 100644 tree-sitter-yts/package.json.license create mode 100644 tree-sitter-yts/src/grammar.json.license create mode 100644 tree-sitter-yts/src/node-types.json.license (limited to 'tree-sitter-yts') diff --git a/tree-sitter-yts/.editorconfig b/tree-sitter-yts/.editorconfig index a29f1a6..9975ff2 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) 2024 Benedikt Peetz +# 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 . + # for testing purposes, the corpus may have trailing whitespace # and may have mixed EOL. # Still want a final newline though, as that makes no semantic difference. diff --git a/tree-sitter-yts/.gitignore b/tree-sitter-yts/.gitignore index 07e6e47..88a62ca 100644 --- a/tree-sitter-yts/.gitignore +++ b/tree-sitter-yts/.gitignore @@ -1 +1,11 @@ +# yt - A fully featured command line YouTube client +# +# Copyright (C) 2024 Benedikt Peetz +# 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 . + /node_modules diff --git a/tree-sitter-yts/Cargo.toml b/tree-sitter-yts/Cargo.toml index 5287c42..1872f18 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) 2024 Benedikt Peetz +# 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 . + [package] name = "tree-sitter-yts" description = "yts grammar for the tree-sitter parsing library" diff --git a/tree-sitter-yts/binding.gyp.license b/tree-sitter-yts/binding.gyp.license new file mode 100644 index 0000000..d4d410f --- /dev/null +++ b/tree-sitter-yts/binding.gyp.license @@ -0,0 +1,9 @@ +yt - A fully featured command line YouTube client + +Copyright (C) 2024 Benedikt Peetz +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 . diff --git a/tree-sitter-yts/bindings/node/binding.cc b/tree-sitter-yts/bindings/node/binding.cc index a042be5..fdf44ff 100644 --- a/tree-sitter-yts/bindings/node/binding.cc +++ b/tree-sitter-yts/bindings/node/binding.cc @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2024 Benedikt Peetz +// 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 . + #include "nan.h" #include "tree_sitter/parser.h" #include diff --git a/tree-sitter-yts/bindings/node/index.js b/tree-sitter-yts/bindings/node/index.js index 3217974..580bda0 100644 --- a/tree-sitter-yts/bindings/node/index.js +++ b/tree-sitter-yts/bindings/node/index.js @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2024 Benedikt Peetz +// 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 . + try { module.exports = require("../../build/Release/tree_sitter_yts_binding"); } catch (error1) { diff --git a/tree-sitter-yts/bindings/rust/build.rs b/tree-sitter-yts/bindings/rust/build.rs index c6061f0..075dc92 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) 2024 Benedikt Peetz +// 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 . + 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 f1868b2..0880238 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) 2024 Benedikt Peetz +// 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 . + //! This crate provides yts language support for the [tree-sitter][] parsing library. //! //! Typically, you will use the [language][language func] function to add this language to a diff --git a/tree-sitter-yts/corpus/comments.txt.license b/tree-sitter-yts/corpus/comments.txt.license new file mode 100644 index 0000000..d4d410f --- /dev/null +++ b/tree-sitter-yts/corpus/comments.txt.license @@ -0,0 +1,9 @@ +yt - A fully featured command line YouTube client + +Copyright (C) 2024 Benedikt Peetz +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 . diff --git a/tree-sitter-yts/corpus/comments_correct.txt.license b/tree-sitter-yts/corpus/comments_correct.txt.license new file mode 100644 index 0000000..d4d410f --- /dev/null +++ b/tree-sitter-yts/corpus/comments_correct.txt.license @@ -0,0 +1,9 @@ +yt - A fully featured command line YouTube client + +Copyright (C) 2024 Benedikt Peetz +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 . diff --git a/tree-sitter-yts/corpus/duration.txt.license b/tree-sitter-yts/corpus/duration.txt.license new file mode 100644 index 0000000..d4d410f --- /dev/null +++ b/tree-sitter-yts/corpus/duration.txt.license @@ -0,0 +1,9 @@ +yt - A fully featured command line YouTube client + +Copyright (C) 2024 Benedikt Peetz +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 . diff --git a/tree-sitter-yts/corpus/flags.txt.license b/tree-sitter-yts/corpus/flags.txt.license new file mode 100644 index 0000000..d4d410f --- /dev/null +++ b/tree-sitter-yts/corpus/flags.txt.license @@ -0,0 +1,9 @@ +yt - A fully featured command line YouTube client + +Copyright (C) 2024 Benedikt Peetz +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 . diff --git a/tree-sitter-yts/corpus/flags_dash.txt.license b/tree-sitter-yts/corpus/flags_dash.txt.license new file mode 100644 index 0000000..d4d410f --- /dev/null +++ b/tree-sitter-yts/corpus/flags_dash.txt.license @@ -0,0 +1,9 @@ +yt - A fully featured command line YouTube client + +Copyright (C) 2024 Benedikt Peetz +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 . diff --git a/tree-sitter-yts/corpus/url.txt.license b/tree-sitter-yts/corpus/url.txt.license new file mode 100644 index 0000000..d4d410f --- /dev/null +++ b/tree-sitter-yts/corpus/url.txt.license @@ -0,0 +1,9 @@ +yt - A fully featured command line YouTube client + +Copyright (C) 2024 Benedikt Peetz +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 . diff --git a/tree-sitter-yts/grammar.js b/tree-sitter-yts/grammar.js index 4857446..563f7f4 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) 2024 Benedikt Peetz +// 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 . + module.exports = grammar({ name: "yts", diff --git a/tree-sitter-yts/highlight_sample.yts.license b/tree-sitter-yts/highlight_sample.yts.license new file mode 100644 index 0000000..d4d410f --- /dev/null +++ b/tree-sitter-yts/highlight_sample.yts.license @@ -0,0 +1,9 @@ +yt - A fully featured command line YouTube client + +Copyright (C) 2024 Benedikt Peetz +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 . diff --git a/tree-sitter-yts/package.json.license b/tree-sitter-yts/package.json.license new file mode 100644 index 0000000..d4d410f --- /dev/null +++ b/tree-sitter-yts/package.json.license @@ -0,0 +1,9 @@ +yt - A fully featured command line YouTube client + +Copyright (C) 2024 Benedikt Peetz +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 . diff --git a/tree-sitter-yts/package.nix b/tree-sitter-yts/package.nix index 11ab5a8..5bdb9c6 100644 --- a/tree-sitter-yts/package.nix +++ b/tree-sitter-yts/package.nix @@ -1,3 +1,13 @@ +# yt - A fully featured command line YouTube client +# +# Copyright (C) 2024 Benedikt Peetz +# 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 . + # taken from nixpgks: pkgs/development/tools/parsing/tree-sitter/grammar.nix { stdenv, diff --git a/tree-sitter-yts/queries/highlights.scm b/tree-sitter-yts/queries/highlights.scm index 49f197d..e4ac040 100644 --- a/tree-sitter-yts/queries/highlights.scm +++ b/tree-sitter-yts/queries/highlights.scm @@ -1,3 +1,13 @@ +;;; yt - A fully featured command line YouTube client +;;; +;;; Copyright (C) 2024 Benedikt Peetz +;;; 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 . + (command) @keyword (id) @constant (title) @text.title diff --git a/tree-sitter-yts/src/grammar.json.license b/tree-sitter-yts/src/grammar.json.license new file mode 100644 index 0000000..d4d410f --- /dev/null +++ b/tree-sitter-yts/src/grammar.json.license @@ -0,0 +1,9 @@ +yt - A fully featured command line YouTube client + +Copyright (C) 2024 Benedikt Peetz +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 . 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..d4d410f --- /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) 2024 Benedikt Peetz +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 . diff --git a/tree-sitter-yts/src/parser.c b/tree-sitter-yts/src/parser.c index 3b43659..ea08f34 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) 2024 Benedikt Peetz + * 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 . + */ + #include #if defined(__GNUC__) || defined(__clang__) diff --git a/tree-sitter-yts/src/tree_sitter/parser.h b/tree-sitter-yts/src/tree_sitter/parser.h index 1cbb75a..433fdf0 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) 2024 Benedikt Peetz + * 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 . + */ + #ifndef TREE_SITTER_PARSER_H_ #define TREE_SITTER_PARSER_H_ -- cgit 1.4.1