Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit d44a07e

Browse files
R2: decrease indentation of function_name also for analytic functions
1 parent 737d98c commit d44a07e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

settings/sql_developer/trivadis_custom_format_phase2.arbori

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1846,13 +1846,19 @@ r2_decrement_left_margin:
18461846
| [node) 'XMLTABLE' & [node^) xmltable
18471847
| [node) 'JSON_TABLE' & [node^) json_table
18481848
| [node) 'COLUMNS' & [node^) JSON_columns_clause
1849-
| [node+1) '(' & [node^) function
1850-
| [node+1) "(x,y,z)" & [node^) function
18511849
| [node+1) '(' & [node^) XML_attributes_clause
18521850
-> {
18531851
addMargin(tuple.get("node"), -1 * indentSpaces, "r2_decrement_left_margin");
18541852
}
18551853

1854+
r2_decrement_left_margin_for_function_name:
1855+
([node^) function | [node^) count | [node^) over_clause)
1856+
& [lparen) '('
1857+
& [lparen = node)
1858+
-> {
1859+
addMargin(tuple.get("node"), -1 * indentSpaces, "r2_decrement_left_margin_for_function_name");
1860+
}
1861+
18561862
r2_increment_left_margin_by_keyword_outside_node:
18571863
-- select statement
18581864
[node) select_list & [keyword) 'SELECT' & (keyword = node-1 | keyword = node-2)

0 commit comments

Comments
 (0)