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

Commit b4df3f4

Browse files
align constant and variables in package spec incl. default values (see #249)
1 parent 18500bb commit b4df3f4

1 file changed

Lines changed: 28 additions & 2 deletions

File tree

settings/sql_developer/trivadis_custom_format.arbori

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3666,6 +3666,16 @@ o8_declarations:
36663666
var datatypes = new HashMap();
36673667
}
36683668

3669+
o8_package_variables:
3670+
[scope) pkg_spec
3671+
& [name) decl_id
3672+
& [parent) basic_d
3673+
& name = node-1
3674+
& scope < name^
3675+
& parent = name^
3676+
& [parent = [name
3677+
;
3678+
36693679
o8_variables:
36703680
[scope) decl_list
36713681
& [name) decl_id
@@ -3702,7 +3712,8 @@ o8_external_params:
37023712
;
37033713

37043714
o8_find_type_declarations:
3705-
o8_variables
3715+
o8_package_variables
3716+
| o8_variables
37063717
| o8_records
37073718
| o8_attributes
37083719
| o8_external_params
@@ -3746,6 +3757,20 @@ o4_declarations:
37463757
var assignmentsWithValue = new HashMap();
37473758
}
37483759

3760+
o4_package_spec:
3761+
[scope) pkg_spec
3762+
& [node) default_expr_opt
3763+
& scope < node
3764+
;
3765+
3766+
o4_function_in_package_spec:
3767+
[scope) pkg_spec
3768+
& [func) fml_part
3769+
& [node) default_expr_opt
3770+
& func < node
3771+
& scope < func
3772+
;
3773+
37493774
o4_declare_section:
37503775
[scope) decl_list
37513776
& [node) default_expr_opt
@@ -3767,7 +3792,8 @@ o4_function:
37673792
;
37683793

37693794
o4_find_assignments:
3770-
(o4_declare_section - o4_function_in_declare_section)
3795+
(o4_package_spec - o4_function_in_package_spec)
3796+
| (o4_declare_section - o4_function_in_declare_section)
37713797
| o4_function
37723798
-> {
37733799
if (alignAssignments) {

0 commit comments

Comments
 (0)