mirror of
https://github.com/elladunbar/tree-sitter-zanscript.git
synced 2025-11-05 23:29:54 -06:00
Compare commits
No commits in common. "main" and "v2" have entirely different histories.
4 changed files with 11968 additions and 15592 deletions
12
grammar.js
12
grammar.js
|
|
@ -57,18 +57,12 @@ module.exports = grammar({
|
|||
$.if_insensitive,
|
||||
$.comparison,
|
||||
$.block,
|
||||
optional(
|
||||
repeat(
|
||||
seq(
|
||||
$.elseif_insensitive,
|
||||
$.comparison,
|
||||
$.block,
|
||||
),
|
||||
),
|
||||
),
|
||||
optional(
|
||||
seq(
|
||||
choice(
|
||||
$.else_insensitive,
|
||||
$.elseif_insensitive,
|
||||
),
|
||||
$.block,
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "tree-sitter-zanscript",
|
||||
"version": "3.0.0",
|
||||
"version": "1.0.0",
|
||||
"description": "Zanscript grammar for tree-sitter",
|
||||
"main": "index.js",
|
||||
"types": "bindings/node",
|
||||
|
|
|
|||
31
src/grammar.json
generated
31
src/grammar.json
generated
|
|
@ -143,40 +143,21 @@
|
|||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "REPEAT",
|
||||
"content": {
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "elseif_insensitive"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "comparison"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "block"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "else_insensitive"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "elseif_insensitive"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "block"
|
||||
|
|
|
|||
27503
src/parser.c
generated
27503
src/parser.c
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue