Compare commits

..

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

4 changed files with 15580 additions and 11956 deletions

View file

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

View file

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

31
src/grammar.json generated
View file

@ -143,20 +143,39 @@
"type": "CHOICE", "type": "CHOICE",
"members": [ "members": [
{ {
"type": "REPEAT",
"content": {
"type": "SEQ", "type": "SEQ",
"members": [ "members": [
{
"type": "SYMBOL",
"name": "elseif_insensitive"
},
{
"type": "SYMBOL",
"name": "comparison"
},
{
"type": "SYMBOL",
"name": "block"
}
]
}
},
{
"type": "BLANK"
}
]
},
{ {
"type": "CHOICE", "type": "CHOICE",
"members": [ "members": [
{ {
"type": "SYMBOL", "type": "SEQ",
"name": "else_insensitive" "members": [
},
{ {
"type": "SYMBOL", "type": "SYMBOL",
"name": "elseif_insensitive" "name": "else_insensitive"
}
]
}, },
{ {
"type": "SYMBOL", "type": "SYMBOL",

27481
src/parser.c generated

File diff suppressed because it is too large Load diff