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

Commit 0615c86

Browse files
closes #196 - no space between sign and digits
1 parent 077c29d commit 0615c86

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

settings/sql_developer/trivadis_custom_format.arbori

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -862,6 +862,7 @@ i9_remove_duplicate_spaces_in_scope:
862862
-- - A2: Remove trailing spaces.
863863
-- - A3: Do not format code between @formatter:off and @formatter:on comments.
864864
-- - O2: White Space: Around operators. Options: true; false. (spaceAroundOperators).
865+
-- - A22: No space between sign and digits.
865866
-- - A13: Keep short nodes on the same line.
866867
-- - A5: No space before node.
867868
-- - A6: No space after node.
@@ -1013,6 +1014,21 @@ o2_whitespace_around_operators:
10131014
}
10141015
}
10151016

1017+
-- --------------------------------------------------------------------------------------------------------------------
1018+
-- A22: No space between sign and digits.
1019+
-- --------------------------------------------------------------------------------------------------------------------
1020+
1021+
a22_no_space_between_sign_and_digits:
1022+
([node) '-' | [node) '+')
1023+
& ![node) binary_add_op
1024+
& [node+1) digits
1025+
& ![node-1) digits
1026+
& ![node-1) expr
1027+
-> {
1028+
struct.putNewline(node.to, "");
1029+
logger.fine(struct.getClass(), "a22_no_space_between_sign_and_digits: at " + node.to + ".");
1030+
}
1031+
10161032
-- --------------------------------------------------------------------------------------------------------------------
10171033
-- A13: Keep short nodes on the same line.
10181034
-- --------------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)