diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-05-26 17:58:28 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-05-26 17:58:28 +0200 |
| commit | 6c354f9af1d6a79f80772ffec8c719469fd19d69 (patch) | |
| tree | 81630fdd769f5c1ff0c6473e187d610f4cbcf761 /tree-sitter-yts/src/grammar.json | |
| parent | chore(version): v1.9.0 (diff) | |
| download | yt-6c354f9af1d6a79f80772ffec8c719469fd19d69.zip | |
build(tree-sitter-yts): Reduce bindings and update to latest tree-sitter version
Diffstat (limited to '')
| -rw-r--r-- | tree-sitter-yts/src/grammar.json | 308 | ||||
| -rw-r--r-- | tree-sitter-yts/src/grammar.json.license | 9 |
2 files changed, 5 insertions, 312 deletions
diff --git a/tree-sitter-yts/src/grammar.json b/tree-sitter-yts/src/grammar.json index f2f337c..b979e83 100644 --- a/tree-sitter-yts/src/grammar.json +++ b/tree-sitter-yts/src/grammar.json @@ -3,307 +3,8 @@ "name": "yts", "rules": { "source_file": { - "type": "REPEAT", - "content": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "line" - }, - { - "type": "SYMBOL", - "name": "comment" - } - ] - } - }, - "line": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "command" - }, - { - "type": "REPEAT", - "content": { - "type": "SYMBOL", - "name": "flag" - } - }, - { - "type": "SYMBOL", - "name": "id" - }, - { - "type": "SYMBOL", - "name": "title" - }, - { - "type": "SYMBOL", - "name": "date" - }, - { - "type": "SYMBOL", - "name": "author" - }, - { - "type": "SYMBOL", - "name": "duration" - }, - { - "type": "SYMBOL", - "name": "url" - }, - { - "type": "STRING", - "value": "\n" - } - ] - }, - "command": { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "pick" - }, - { - "type": "STRING", - "value": "p" - }, - { - "type": "STRING", - "value": "watch" - }, - { - "type": "STRING", - "value": "w" - }, - { - "type": "STRING", - "value": "watched" - }, - { - "type": "STRING", - "value": "wd" - }, - { - "type": "STRING", - "value": "add" - }, - { - "type": "STRING", - "value": "a" - }, - { - "type": "STRING", - "value": "drop" - }, - { - "type": "STRING", - "value": "d" - }, - { - "type": "STRING", - "value": "url" - }, - { - "type": "STRING", - "value": "u" - } - ] - }, - "flag": { - "type": "CHOICE", - "members": [ - { - "type": "PATTERN", - "value": "-\\w [^\\s]+" - }, - { - "type": "PATTERN", - "value": "-\\w '[^']*'" - }, - { - "type": "PATTERN", - "value": "-\\w \"[^\"]*\"" - }, - { - "type": "PATTERN", - "value": "-\\w=[^\\s]+" - }, - { - "type": "PATTERN", - "value": "-\\w='[^']*'" - }, - { - "type": "PATTERN", - "value": "-\\w=\"[^\"]*\"" - }, - { - "type": "PATTERN", - "value": "--\\w[\\w-]+ [^\\s]+" - }, - { - "type": "PATTERN", - "value": "--\\w[\\w-]+ '[^']*'" - }, - { - "type": "PATTERN", - "value": "--\\w[\\w-]+ \"[^\"]*\"" - }, - { - "type": "PATTERN", - "value": "--\\w[\\w-]+=[^\\s]+" - }, - { - "type": "PATTERN", - "value": "--\\w[\\w-]+='[^']*'" - }, - { - "type": "PATTERN", - "value": "--\\w[\\w-]+=\"[^\"]*\"" - } - ] - }, - "id": { - "type": "PATTERN", - "value": "[a-z0-9]+" - }, - "title": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "_q" - }, - { - "type": "PATTERN", - "value": "[^\"]+" - }, - { - "type": "SYMBOL", - "name": "_q" - } - ] - }, - "date": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "_q" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "[No release date]" - }, - { - "type": "PATTERN", - "value": "\\d{4}-\\d{2}-\\d{2}" - } - ] - }, - { - "type": "SYMBOL", - "name": "_q" - } - ] - }, - "author": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "_q" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "[No author]" - }, - { - "type": "PATTERN", - "value": "[^\"]+" - } - ] - }, - { - "type": "SYMBOL", - "name": "_q" - } - ] - }, - "duration": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "_q" - }, - { - "type": "SEQ", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "[No duration]" - }, - { - "type": "PATTERN", - "value": "\\d+m \\d+s" - }, - { - "type": "PATTERN", - "value": "\\d+h \\d+m" - } - ] - } - ] - }, - { - "type": "SYMBOL", - "name": "_q" - } - ] - }, - "url": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "_q" - }, - { - "type": "PATTERN", - "value": "[^\"]+" - }, - { - "type": "SYMBOL", - "name": "_q" - } - ] - }, - "comment": { - "type": "PATTERN", - "value": "#.*" - }, - "_q": { - "type": "SYMBOL", - "name": "quote" - }, - "quote": { - "type": "PATTERN", - "value": "\"" + "type": "STRING", + "value": "hello" } }, "extras": [ @@ -316,5 +17,6 @@ "precedences": [], "externals": [], "inline": [], - "supertypes": [] -} + "supertypes": [], + "reserved": {} +}
\ No newline at end of file diff --git a/tree-sitter-yts/src/grammar.json.license b/tree-sitter-yts/src/grammar.json.license deleted file mode 100644 index d4d410f..0000000 --- a/tree-sitter-yts/src/grammar.json.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>. |
