-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When parsing a file, ignore sections appearing after a final-flagged section of the same name. Adjust the meaning of group_level in the parser state so that it is 1 inside of top-level sections instead of 0, and simplify the addition of top-level sections to the tree by relying on profile_add_node()'s section merging. Make the final flag work for relations as well as sections. Check it while parsing via a new check_final parameter in profile_add_node(), and during iteration. Output final flags for relations in dump_profile(). Make the final flag available to it via a new output parameter in profile_find_node_relation(). ticket: 9120
- Loading branch information
1 parent
fc54edd
commit f951625
Showing
9 changed files
with
143 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,26 @@ value1 | |
value1 | ||
|
||
value2 | ||
value1 | ||
|
||
value3 | ||
|
||
value4 | ||
|
||
value5 | ||
|
||
1 | ||
2 | ||
|
||
1 | ||
|
||
1 | ||
2 | ||
|
||
1 | ||
|
||
1 | ||
|
||
1 | ||
|
||
1 | ||
2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# A profile exercising suppression of final-flagged sections, | ||
# subsections, and relations within the same file. | ||
|
||
[a] | ||
ab = 1 | ||
ab* = 2 | ||
ab = 3 | ||
ab* = 4 | ||
ac* = 1 | ||
|
||
[a] | ||
ac = 2 | ||
ac* = 3 | ||
ac = 4 | ||
|
||
[b]* | ||
ba = 1 | ||
ba* = 2 | ||
bb = { | ||
bba = 1 | ||
} | ||
|
||
[b] | ||
ba = 3 | ||
bb = { | ||
bba = 2 | ||
} | ||
|
||
[c] | ||
ca* = { | ||
caa* = 1 | ||
} | ||
cb = { | ||
cba = 1 | ||
}* | ||
cc = 1 | ||
|
||
[c] | ||
ca = { | ||
caa = 2 | ||
} | ||
cb* = { | ||
cba = 2 | ||
} | ||
cc = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters