tree-sitter grammar update
This commit is contained in:
@@ -753,6 +753,38 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "="
|
||||
},
|
||||
{
|
||||
"type": "REPEAT",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "_newline"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "FIELD",
|
||||
"name": "default",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "expression"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -1039,6 +1071,18 @@
|
||||
"name": "_newline"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "$"
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "FIELD",
|
||||
"name": "name",
|
||||
@@ -1124,6 +1168,41 @@
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "function_type"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "parenthesized_type"
|
||||
}
|
||||
]
|
||||
},
|
||||
"parenthesized_type": {
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "("
|
||||
},
|
||||
{
|
||||
"type": "REPEAT",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "_newline"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "type"
|
||||
},
|
||||
{
|
||||
"type": "REPEAT",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "_newline"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": ")"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -1464,6 +1543,10 @@
|
||||
"type": "STRING",
|
||||
"value": "void"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "type"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "anyopaque"
|
||||
@@ -2532,8 +2615,8 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "|"
|
||||
"type": "SYMBOL",
|
||||
"name": "_for_capture_bar"
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
@@ -2581,8 +2664,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "|"
|
||||
"type": "SYMBOL",
|
||||
"name": "_for_capture_bar"
|
||||
},
|
||||
{
|
||||
"type": "REPEAT",
|
||||
@@ -2633,6 +2716,17 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"_for_capture_bar": {
|
||||
"type": "TOKEN",
|
||||
"content": {
|
||||
"type": "PREC",
|
||||
"value": 1,
|
||||
"content": {
|
||||
"type": "STRING",
|
||||
"value": "|"
|
||||
}
|
||||
}
|
||||
},
|
||||
"match_statement": {
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
@@ -4903,6 +4997,12 @@
|
||||
"variable_declaration",
|
||||
"expression"
|
||||
],
|
||||
[
|
||||
"constant_declaration",
|
||||
"variable_declaration",
|
||||
"expression",
|
||||
"qualified_identifier"
|
||||
],
|
||||
[
|
||||
"function_declaration"
|
||||
],
|
||||
@@ -4942,10 +5042,6 @@
|
||||
"capture_list",
|
||||
"expression"
|
||||
],
|
||||
[
|
||||
"for_statement",
|
||||
"expression"
|
||||
],
|
||||
[
|
||||
"match_capture",
|
||||
"expression"
|
||||
|
||||
Reference in New Issue
Block a user