diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-14 12:29:47 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-14 12:29:47 +0100 |
commit | a9a4ba60a37eb351d3ed872f1cfcf53e673be9ef (patch) | |
tree | 59ab6fe348e7e42c10c33799b5ff51433dc16842 /tree-sitter-yts/corpus | |
parent | fix(yt_dlp/wrappers/info_json): Add missing fields to `Subtitle` (diff) | |
download | yt-a9a4ba60a37eb351d3ed872f1cfcf53e673be9ef.tar.gz yt-a9a4ba60a37eb351d3ed872f1cfcf53e673be9ef.zip |
feat(tree-sitter-yts): Update to new tree-sitter version & improve parsing
Diffstat (limited to 'tree-sitter-yts/corpus')
-rw-r--r-- | tree-sitter-yts/corpus/comments.txt | 51 | ||||
-rw-r--r-- | tree-sitter-yts/corpus/comments.txt.license | 9 | ||||
-rw-r--r-- | tree-sitter-yts/corpus/comments_correct.txt | 27 | ||||
-rw-r--r-- | tree-sitter-yts/corpus/comments_correct.txt.license | 9 | ||||
-rw-r--r-- | tree-sitter-yts/corpus/duration.txt | 84 | ||||
-rw-r--r-- | tree-sitter-yts/corpus/duration.txt.license | 9 | ||||
-rw-r--r-- | tree-sitter-yts/corpus/flags.txt | 71 | ||||
-rw-r--r-- | tree-sitter-yts/corpus/flags.txt.license | 9 | ||||
-rw-r--r-- | tree-sitter-yts/corpus/flags_dash.txt | 29 | ||||
-rw-r--r-- | tree-sitter-yts/corpus/flags_dash.txt.license | 9 | ||||
-rw-r--r-- | tree-sitter-yts/corpus/url.txt | 84 | ||||
-rw-r--r-- | tree-sitter-yts/corpus/url.txt.license | 9 |
12 files changed, 0 insertions, 400 deletions
diff --git a/tree-sitter-yts/corpus/comments.txt b/tree-sitter-yts/corpus/comments.txt deleted file mode 100644 index f194cb5..0000000 --- a/tree-sitter-yts/corpus/comments.txt +++ /dev/null @@ -1,51 +0,0 @@ -================================================================================ -Parse multiple lines -================================================================================ - -pick 6z21 "Name" "2024-01-17" "A" "0m 0s" "url" -pick 61f1 "Name2" "2024-01-16" "A2" "0m 0s" "url" - -# This is a comment -# it contains information - --------------------------------------------------------------------------------- - -(source_file - (line - (command) - (id) - (title - (quote) - (quote)) - (date - (quote) - (quote)) - (author - (quote) - (quote)) - (duration - (quote) - (quote)) - (url - (quote) - (quote))) - (line - (command) - (id) - (title - (quote) - (quote)) - (date - (quote) - (quote)) - (author - (quote) - (quote)) - (duration - (quote) - (quote)) - (url - (quote) - (quote))) - (comment) - (comment)) diff --git a/tree-sitter-yts/corpus/comments.txt.license b/tree-sitter-yts/corpus/comments.txt.license deleted file mode 100644 index d4d410f..0000000 --- a/tree-sitter-yts/corpus/comments.txt.license +++ /dev/null @@ -1,9 +0,0 @@ -yt - A fully featured command line YouTube client - -Copyright (C) 2024 Benedikt Peetz <benedikt.peetz@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/corpus/comments_correct.txt b/tree-sitter-yts/corpus/comments_correct.txt deleted file mode 100644 index fd45e47..0000000 --- a/tree-sitter-yts/corpus/comments_correct.txt +++ /dev/null @@ -1,27 +0,0 @@ -================================================================================ -Disregard comments in title -================================================================================ - -pick 6r94 "#100 Name" "2024-01-12" "A" "133m 29s" "url" - --------------------------------------------------------------------------------- - -(source_file - (line - (command) - (id) - (title - (quote) - (quote)) - (date - (quote) - (quote)) - (author - (quote) - (quote)) - (duration - (quote) - (quote)) - (url - (quote) - (quote)))) diff --git a/tree-sitter-yts/corpus/comments_correct.txt.license b/tree-sitter-yts/corpus/comments_correct.txt.license deleted file mode 100644 index d4d410f..0000000 --- a/tree-sitter-yts/corpus/comments_correct.txt.license +++ /dev/null @@ -1,9 +0,0 @@ -yt - A fully featured command line YouTube client - -Copyright (C) 2024 Benedikt Peetz <benedikt.peetz@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/corpus/duration.txt b/tree-sitter-yts/corpus/duration.txt deleted file mode 100644 index af9ca82..0000000 --- a/tree-sitter-yts/corpus/duration.txt +++ /dev/null @@ -1,84 +0,0 @@ -================================================================================ -Parse multiple lines with different durations -================================================================================ - -pick 6f21 "Name" "2024-01-17" "A" "1h 0m" "url" -pick 6z81 "Name2" "2024-01-16" "A2" "20m 02s" "url2" -pick 6a84 "Name3" "2024-01-16" "A3" "20h 0m" "url3" -pick 6b06 "Name4" "2024-01-16" "A4" "[No Duration]" "url4" - --------------------------------------------------------------------------------- - -(source_file - (line - (command) - (id) - (title - (quote) - (quote)) - (date - (quote) - (quote)) - (author - (quote) - (quote)) - (duration - (quote) - (quote)) - (url - (quote) - (quote))) - (line - (command) - (id) - (title - (quote) - (quote)) - (date - (quote) - (quote)) - (author - (quote) - (quote)) - (duration - (quote) - (quote)) - (url - (quote) - (quote))) - (line - (command) - (id) - (title - (quote) - (quote)) - (date - (quote) - (quote)) - (author - (quote) - (quote)) - (duration - (quote) - (quote)) - (url - (quote) - (quote))) - (line - (command) - (id) - (title - (quote) - (quote)) - (date - (quote) - (quote)) - (author - (quote) - (quote)) - (duration - (quote) - (quote)) - (url - (quote) - (quote)))) diff --git a/tree-sitter-yts/corpus/duration.txt.license b/tree-sitter-yts/corpus/duration.txt.license deleted file mode 100644 index d4d410f..0000000 --- a/tree-sitter-yts/corpus/duration.txt.license +++ /dev/null @@ -1,9 +0,0 @@ -yt - A fully featured command line YouTube client - -Copyright (C) 2024 Benedikt Peetz <benedikt.peetz@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/corpus/flags.txt b/tree-sitter-yts/corpus/flags.txt deleted file mode 100644 index 8c1d255..0000000 --- a/tree-sitter-yts/corpus/flags.txt +++ /dev/null @@ -1,71 +0,0 @@ -================================================================================ -Correctly detect flags -================================================================================ - -watch --priority="-100" --speed 1 6z21 "Name" "2024-01-17" "A" "0m 0s" "url" -watch -s 2 -l 'en,gr,fr' 61f1 "Name2" "2024-01-16" "A2" "0m 0s" "url" -watch -s=2 -l='en,gr,fr' 61f1 "Name2" "2024-01-16" "A2" "0m 0s" "url" - --------------------------------------------------------------------------------- - -(source_file - (line - (command) - (flag) - (flag) - (id) - (title - (quote) - (quote)) - (date - (quote) - (quote)) - (author - (quote) - (quote)) - (duration - (quote) - (quote)) - (url - (quote) - (quote))) - (line - (command) - (flag) - (flag) - (id) - (title - (quote) - (quote)) - (date - (quote) - (quote)) - (author - (quote) - (quote)) - (duration - (quote) - (quote)) - (url - (quote) - (quote))) - (line - (command) - (flag) - (flag) - (id) - (title - (quote) - (quote)) - (date - (quote) - (quote)) - (author - (quote) - (quote)) - (duration - (quote) - (quote)) - (url - (quote) - (quote)))) diff --git a/tree-sitter-yts/corpus/flags.txt.license b/tree-sitter-yts/corpus/flags.txt.license deleted file mode 100644 index d4d410f..0000000 --- a/tree-sitter-yts/corpus/flags.txt.license +++ /dev/null @@ -1,9 +0,0 @@ -yt - A fully featured command line YouTube client - -Copyright (C) 2024 Benedikt Peetz <benedikt.peetz@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/corpus/flags_dash.txt b/tree-sitter-yts/corpus/flags_dash.txt deleted file mode 100644 index b9a5e7c..0000000 --- a/tree-sitter-yts/corpus/flags_dash.txt +++ /dev/null @@ -1,29 +0,0 @@ -================================================================================ -Correctly detect flags -================================================================================ - -watch --subtitle-langs="" --speed 1 6z21 "Name" "2024-01-17" "A" "0m 0s" "url" - --------------------------------------------------------------------------------- - -(source_file - (line - (command) - (flag) - (flag) - (id) - (title - (quote) - (quote)) - (date - (quote) - (quote)) - (author - (quote) - (quote)) - (duration - (quote) - (quote)) - (url - (quote) - (quote)))) diff --git a/tree-sitter-yts/corpus/flags_dash.txt.license b/tree-sitter-yts/corpus/flags_dash.txt.license deleted file mode 100644 index d4d410f..0000000 --- a/tree-sitter-yts/corpus/flags_dash.txt.license +++ /dev/null @@ -1,9 +0,0 @@ -yt - A fully featured command line YouTube client - -Copyright (C) 2024 Benedikt Peetz <benedikt.peetz@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/corpus/url.txt b/tree-sitter-yts/corpus/url.txt deleted file mode 100644 index 8236d6b..0000000 --- a/tree-sitter-yts/corpus/url.txt +++ /dev/null @@ -1,84 +0,0 @@ -================================================================================ -Parse multiple lines with url -================================================================================ - -pick c221 "Name" "2024-01-17" "A" "0h 0m" "url" -pick b181 "Name2" "2024-01-16" "A2" "0h 0m" "url2" -pick a184 "Name3" "2024-01-16" "A3" "0h 0m" "url3" -pick d206 "Name4" "2024-01-16" "A4" "0h 0m" "url4" - --------------------------------------------------------------------------------- - -(source_file - (line - (command) - (id) - (title - (quote) - (quote)) - (date - (quote) - (quote)) - (author - (quote) - (quote)) - (duration - (quote) - (quote)) - (url - (quote) - (quote))) - (line - (command) - (id) - (title - (quote) - (quote)) - (date - (quote) - (quote)) - (author - (quote) - (quote)) - (duration - (quote) - (quote)) - (url - (quote) - (quote))) - (line - (command) - (id) - (title - (quote) - (quote)) - (date - (quote) - (quote)) - (author - (quote) - (quote)) - (duration - (quote) - (quote)) - (url - (quote) - (quote))) - (line - (command) - (id) - (title - (quote) - (quote)) - (date - (quote) - (quote)) - (author - (quote) - (quote)) - (duration - (quote) - (quote)) - (url - (quote) - (quote)))) diff --git a/tree-sitter-yts/corpus/url.txt.license b/tree-sitter-yts/corpus/url.txt.license deleted file mode 100644 index d4d410f..0000000 --- a/tree-sitter-yts/corpus/url.txt.license +++ /dev/null @@ -1,9 +0,0 @@ -yt - A fully featured command line YouTube client - -Copyright (C) 2024 Benedikt Peetz <benedikt.peetz@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>. |