Use 'type_identifier' in array type declaration
This commit is contained in:
parent
0827093fe7
commit
5d37bf7bd1
|
@ -285,7 +285,7 @@ module.exports = grammar({
|
||||||
array_type: ($) => seq(
|
array_type: ($) => seq(
|
||||||
"array",
|
"array",
|
||||||
"of",
|
"of",
|
||||||
field("element_type", $.identifier),
|
field("element_type", $._type_identifier),
|
||||||
),
|
),
|
||||||
|
|
||||||
function_declaration: ($) => seq(
|
function_declaration: ($) => seq(
|
||||||
|
|
|
@ -1234,7 +1234,7 @@
|
||||||
"name": "element_type",
|
"name": "element_type",
|
||||||
"content": {
|
"content": {
|
||||||
"type": "SYMBOL",
|
"type": "SYMBOL",
|
||||||
"name": "identifier"
|
"name": "_type_identifier"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -180,7 +180,7 @@
|
||||||
"required": true,
|
"required": true,
|
||||||
"types": [
|
"types": [
|
||||||
{
|
{
|
||||||
"type": "identifier",
|
"type": "type_identifier",
|
||||||
"named": true
|
"named": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -895,6 +895,9 @@ static const TSSymbol ts_alias_sequences[PRODUCTION_ID_COUNT][MAX_ALIAS_SEQUENCE
|
||||||
[0] = alias_sym_type_identifier,
|
[0] = alias_sym_type_identifier,
|
||||||
[2] = alias_sym_field_identifier,
|
[2] = alias_sym_field_identifier,
|
||||||
},
|
},
|
||||||
|
[28] = {
|
||||||
|
[2] = alias_sym_type_identifier,
|
||||||
|
},
|
||||||
[32] = {
|
[32] = {
|
||||||
[3] = alias_sym_type_identifier,
|
[3] = alias_sym_type_identifier,
|
||||||
},
|
},
|
||||||
|
|
|
@ -93,7 +93,7 @@ type array_of_int = array of int
|
||||||
(type_declaration
|
(type_declaration
|
||||||
name: (identifier)
|
name: (identifier)
|
||||||
value: (array_type
|
value: (array_type
|
||||||
element_type: (identifier))))
|
element_type: (type_identifier))))
|
||||||
|
|
||||||
================================================================================
|
================================================================================
|
||||||
Array type declaration non-associativity
|
Array type declaration non-associativity
|
||||||
|
@ -108,7 +108,7 @@ type array_of_array_of_int = array of array of int
|
||||||
(type_declaration
|
(type_declaration
|
||||||
name: (identifier)
|
name: (identifier)
|
||||||
value: (array_type
|
value: (array_type
|
||||||
element_type: (identifier)))
|
element_type: (type_identifier)))
|
||||||
(identifier))
|
(identifier))
|
||||||
(identifier))
|
(identifier))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue