Skip to content

Commit ec6495f

Browse files
1 parent 583683f commit ec6495f

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

formatter/trivadis_custom_format.arbori

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
include "std.arbori"
1818

1919
/**
20-
* Lightweight Formatter for SQL Developer and SQLcl, version 22.2.0
20+
* Lightweight Formatter for SQL Developer and SQLcl, version 22.2.1-SNAPSHOT
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.
@@ -999,7 +999,7 @@ o2_whitespace_around_operators:
999999
| [node) '*'
10001000
| [node) '/' & ![node-1) block_stmt & ![node-1) create_plsql
10011001
| [node) '|'
1002-
| [node) ':'
1002+
| [node) ':' & ![node^) bind_var
10031003
-> {
10041004
var node = tuple.get("node");
10051005
var space;
@@ -1238,6 +1238,13 @@ a5_indicator_variable:
12381238
& [node^) bind_var
12391239
;
12401240

1241+
a5_indicator_variable_colon:
1242+
[node) ':'
1243+
& [node-1) identifier
1244+
& [node-2) ':'
1245+
& [node^) bind_var
1246+
;
1247+
12411248
a5_star_star:
12421249
[node) '*'
12431250
& [node-1) '*'
@@ -1266,6 +1273,7 @@ a5_no_space_before:
12661273
| a5_open_paren_before_datatype
12671274
| a5_brackets
12681275
| a5_indicator_variable
1276+
| a5_indicator_variable_colon
12691277
| a5_star_star
12701278
| a5_pragma_references_args
12711279
-> {
@@ -1303,7 +1311,8 @@ a6_brackets:
13031311
;
13041312

13051313
a6_host_variable:
1306-
[node^) bind_var
1314+
[node) ':'
1315+
& [node^) bind_var
13071316
;
13081317

13091318
a6_pragma_exception_init:

0 commit comments

Comments
 (0)