feat(package): hemar: add indexes to tree-sitter
This commit is contained in:
83
package/hemar/grammar/tree-sitter/src/grammar.json
generated
83
package/hemar/grammar/tree-sitter/src/grammar.json
generated
@@ -23,6 +23,10 @@
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "text"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "actual_bracket"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -109,6 +113,23 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"actual_bracket": {
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "{["
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "{["
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "]}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"path": {
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
@@ -120,8 +141,17 @@
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "string"
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "string"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "index"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "REPEAT",
|
||||
@@ -133,8 +163,17 @@
|
||||
"value": "."
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "string"
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "string"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "index"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -143,6 +182,40 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"index": {
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "["
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "PATTERN",
|
||||
"value": "\\d"
|
||||
},
|
||||
{
|
||||
"type": "PATTERN",
|
||||
"value": "[1-9]\\d*"
|
||||
},
|
||||
{
|
||||
"type": "PATTERN",
|
||||
"value": "-[1-9]"
|
||||
},
|
||||
{
|
||||
"type": "PATTERN",
|
||||
"value": "-[1-9]\\d*"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "]"
|
||||
}
|
||||
]
|
||||
},
|
||||
"string": {
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
@@ -153,7 +226,7 @@
|
||||
"value": -1,
|
||||
"content": {
|
||||
"type": "PATTERN",
|
||||
"value": "[^] .\\\\\"]+"
|
||||
"value": "[^]\\[{} \\n\\t\\r.\\\\\"]+"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
[
|
||||
{
|
||||
"type": "actual_bracket",
|
||||
"named": true,
|
||||
"fields": {}
|
||||
},
|
||||
{
|
||||
"type": "done",
|
||||
"named": true,
|
||||
@@ -12,6 +17,10 @@
|
||||
"multiple": false,
|
||||
"required": true,
|
||||
"types": [
|
||||
{
|
||||
"type": "actual_bracket",
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "interpolation",
|
||||
"named": true
|
||||
@@ -46,6 +55,11 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "index",
|
||||
"named": true,
|
||||
"fields": {}
|
||||
},
|
||||
{
|
||||
"type": "interpolation",
|
||||
"named": true,
|
||||
@@ -69,6 +83,10 @@
|
||||
"multiple": true,
|
||||
"required": false,
|
||||
"types": [
|
||||
{
|
||||
"type": "index",
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"named": true
|
||||
@@ -124,6 +142,14 @@
|
||||
"type": ".",
|
||||
"named": false
|
||||
},
|
||||
{
|
||||
"type": "[",
|
||||
"named": false
|
||||
},
|
||||
{
|
||||
"type": "]",
|
||||
"named": false
|
||||
},
|
||||
{
|
||||
"type": "]}",
|
||||
"named": false
|
||||
|
||||
952
package/hemar/grammar/tree-sitter/src/parser.c
generated
952
package/hemar/grammar/tree-sitter/src/parser.c
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user