Skip to content

Commit 721674c

Browse files
committed
Group parsing of special builtin functions
1 parent 15ada0f commit 721674c

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/parser.pegjs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7771,10 +7771,8 @@ primary
77717771
/ paren$compound_select_stmt
77727772
/ &bigquery x:(typed_array_expr / array_expr / typed_struct_expr) { return x; }
77737773
/ &postgres x:array_literal_expr { return x; }
7774-
/ cast_expr
7774+
/ special_func_call
77757775
/ &postgres x:(row_constructor / array_constructor) { return x; }
7776-
/ &sqlite e:raise_expr { return e; }
7777-
/ (&mysql / &bigquery / &postgres) e:extract_expr { return e; }
77787776
/ case_expr
77797777
/ exists_expr
77807778
/ ident
@@ -7801,6 +7799,11 @@ primary_paren_expr
78017799
}
78027800
}
78037801

7802+
special_func_call
7803+
= cast_expr
7804+
/ &sqlite e:raise_expr { return e; }
7805+
/ (&mysql / &bigquery / &postgres) e:extract_expr { return e; }
7806+
78047807
cast_expr
78057808
= kw:cast_kw args:(__ paren$cast_arg) {
78067809
return loc({

0 commit comments

Comments
 (0)