mirror of
https://github.com/elladunbar/tree-sitter-zanscript.git
synced 2025-11-05 15:19:55 -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,
|
||||
$.block,
|
||||
optional(
|
||||
repeat(
|
||||
seq(
|
||||
choice(
|
||||
$.else_insensitive,
|
||||
$.elseif_insensitive,
|
||||
$.comparison,
|
||||
$.block,
|
||||
),
|
||||
),
|
||||
),
|
||||
optional(
|
||||
seq(
|
||||
$.else_insensitive,
|
||||
$.block,
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -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
31
src/grammar.json
generated
|
|
@ -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
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