diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-11-04 21:32:30 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-11-04 21:38:32 +0100 |
commit | 8403d1f9d7c806fcc1b7aa8f0e0954051b617193 (patch) | |
tree | db104d446d830d77728ddd755214d437181171e5 /pkgs/by-name/tr/tree-sitter-yts/src/grammar.json | |
parent | fix(modules/less/command.less): Improve keymappings (diff) | |
download | nixos-config-8403d1f9d7c806fcc1b7aa8f0e0954051b617193.tar.gz nixos-config-8403d1f9d7c806fcc1b7aa8f0e0954051b617193.zip |
refactor(pkgs/tree-sitter-yts): Move to `yt`
Diffstat (limited to 'pkgs/by-name/tr/tree-sitter-yts/src/grammar.json')
-rw-r--r-- | pkgs/by-name/tr/tree-sitter-yts/src/grammar.json | 286 |
1 files changed, 0 insertions, 286 deletions
diff --git a/pkgs/by-name/tr/tree-sitter-yts/src/grammar.json b/pkgs/by-name/tr/tree-sitter-yts/src/grammar.json deleted file mode 100644 index a63633b5..00000000 --- a/pkgs/by-name/tr/tree-sitter-yts/src/grammar.json +++ /dev/null @@ -1,286 +0,0 @@ -{ - "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": "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": "PATTERN", - "value": "\\d{4}-\\d{2}-\\d{2}" - }, - { - "type": "SYMBOL", - "name": "_q" - } - ] - }, - "author": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "_q" - }, - { - "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": "\"" - } - }, - "extras": [ - { - "type": "PATTERN", - "value": "\\s" - } - ], - "conflicts": [], - "precedences": [], - "externals": [], - "inline": [], - "supertypes": [] -} - |