Compare commits

...

No commits in common. "v3" and "main" have entirely different histories.
v3 ... main

4 changed files with 15580 additions and 11956 deletions

View file

@ -58,11 +58,17 @@ module.exports = grammar({
$.comparison,
$.block,
optional(
repeat(
seq(
choice(
$.else_insensitive,
$.elseif_insensitive,
$.comparison,
$.block,
),
),
),
optional(
seq(
$.else_insensitive,
$.block,
),
),

View file

@ -1,6 +1,6 @@
{
"name": "tree-sitter-zanscript",
"version": "2.0.0",
"version": "3.0.0",
"description": "Zanscript grammar for tree-sitter",
"main": "index.js",
"types": "bindings/node",

31
src/grammar.json generated
View file

@ -143,20 +143,39 @@
"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": "SYMBOL",
"name": "else_insensitive"
},
"type": "SEQ",
"members": [
{
"type": "SYMBOL",
"name": "elseif_insensitive"
}
]
"name": "else_insensitive"
},
{
"type": "SYMBOL",

27481
src/parser.c generated

File diff suppressed because it is too large Load diff