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. "v3" and "main" have entirely different histories.
4 changed files with 15580 additions and 11956 deletions
10
grammar.js
10
grammar.js
|
|
@ -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,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "tree-sitter-zanscript",
|
"name": "tree-sitter-zanscript",
|
||||||
"version": "2.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
31
src/grammar.json
generated
|
|
@ -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
27481
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