File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 1717include "std.arbori"
1818
1919/**
20- * Lightweight Formatter for SQL Developer and SQLcl
20+ * Lightweight Formatter for SQL Developer and SQLcl, version 21.4.2
2121 * The idea is to keep the code formatted "as is" and apply chosen formatting rules only.
2222 *
2323 * The Arbori program is processed from top to bottom.
@@ -1637,6 +1637,11 @@ a8_while:
16371637 & [node^) iteration_scheme
16381638;
16391639
1640+ a8_update:
1641+ [node) 'UPDATE'
1642+ & [node^) update
1643+ ;
1644+
16401645a8_one_space_after:
16411646 a8_if
16421647 | a8_end
@@ -1669,6 +1674,7 @@ a8_one_space_after:
16691674 | a8_returning
16701675 | a8_update_set_clause
16711676 | a8_while
1677+ | a8_update
16721678-> {
16731679 var node = tuple.get("node");
16741680 if (!hasCommentsBetweenPos(node.from, node.to)) {
@@ -2738,6 +2744,7 @@ r2_common:
27382744 | [node^) bulk_loop_stmt & ![node) 'FORALL'
27392745 | [node) analytic_clause & ![node^) over_clause
27402746 | [node) 'RETURN' & [node^) subprg_spec
2747+ | [node) plsql_declarations & ([node^) with_clause | [node^) with_clause[12,20))
27412748;
27422749
27432750r2_flowcontrol_condition:
@@ -2797,7 +2804,7 @@ r2_object_type:
27972804
27982805r2_body:
27992806 [node) subprg_body
2800- & ([parent) pkg_body | [parent) DECLARE_decls_opt)
2807+ & ([parent) pkg_body | [parent) DECLARE_decls_opt | [parent) decl_list )
28012808 & parent << node -- "<" returns wrong result. Arbori query result changed between 20.4.1 and 21.2.0.
28022809;
28032810
You can’t perform that action at this time.
0 commit comments