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.\\\\\"]+"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user