diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-11-04 20:45:29 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-11-04 20:45:29 +0100 |
commit | 676cc2b5619ecd517df42b07dbc2c22449a47179 (patch) | |
tree | 622546b5b6df3cc05171a1b016365ffd612abcd6 /tree-sitter-yts/corpus | |
parent | style(yt/main): Use consistent use qualifications (diff) | |
download | yt-676cc2b5619ecd517df42b07dbc2c22449a47179.tar.gz yt-676cc2b5619ecd517df42b07dbc2c22449a47179.zip |
refactor(tree-sitter-yts): Move in tree
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_correct.txt | 27 | ||||
-rw-r--r-- | tree-sitter-yts/corpus/duration.txt | 84 | ||||
-rw-r--r-- | tree-sitter-yts/corpus/flags.txt | 71 | ||||
-rw-r--r-- | tree-sitter-yts/corpus/flags_dash.txt | 29 | ||||
-rw-r--r-- | tree-sitter-yts/corpus/url.txt | 84 |
6 files changed, 346 insertions, 0 deletions
diff --git a/tree-sitter-yts/corpus/comments.txt b/tree-sitter-yts/corpus/comments.txt new file mode 100644 index 0000000..f194cb5 --- /dev/null +++ b/tree-sitter-yts/corpus/comments.txt @@ -0,0 +1,51 @@ +================================================================================ +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_correct.txt b/tree-sitter-yts/corpus/comments_correct.txt new file mode 100644 index 0000000..fd45e47 --- /dev/null +++ b/tree-sitter-yts/corpus/comments_correct.txt @@ -0,0 +1,27 @@ +================================================================================ +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/duration.txt b/tree-sitter-yts/corpus/duration.txt new file mode 100644 index 0000000..af9ca82 --- /dev/null +++ b/tree-sitter-yts/corpus/duration.txt @@ -0,0 +1,84 @@ +================================================================================ +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/flags.txt b/tree-sitter-yts/corpus/flags.txt new file mode 100644 index 0000000..8c1d255 --- /dev/null +++ b/tree-sitter-yts/corpus/flags.txt @@ -0,0 +1,71 @@ +================================================================================ +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_dash.txt b/tree-sitter-yts/corpus/flags_dash.txt new file mode 100644 index 0000000..b9a5e7c --- /dev/null +++ b/tree-sitter-yts/corpus/flags_dash.txt @@ -0,0 +1,29 @@ +================================================================================ +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/url.txt b/tree-sitter-yts/corpus/url.txt new file mode 100644 index 0000000..8236d6b --- /dev/null +++ b/tree-sitter-yts/corpus/url.txt @@ -0,0 +1,84 @@ +================================================================================ +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)))) |