Skip to content

Commit 8fd5d20

Browse files
committed
Group parameteric data type parsing together
1 parent 3bc4388 commit 8fd5d20

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/parser.pegjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7053,7 +7053,7 @@ modified_data_type
70537053
= &postgres type:(time_data_type / interval_data_type) {
70547054
return type;
70557055
}
7056-
/ &bigquery type:(bigquery_array_type / bigquery_struct_type / bigquery_table_type) {
7056+
/ &bigquery type:parametric_data_type {
70577057
return type;
70587058
}
70597059
/ dataType:data_type_name modifiers:(__ paren$list$expr)? {
@@ -7084,6 +7084,9 @@ interval_data_type
70847084
});
70857085
}
70867086

7087+
parametric_data_type
7088+
= bigquery_array_type / bigquery_struct_type / bigquery_table_type
7089+
70877090
bigquery_array_type
70887091
= kw:ARRAY params:(__ generic_type_params)? {
70897092
return loc({ type: "parametric_data_type", typeKw: read(kw), params: read(params) });

0 commit comments

Comments
 (0)