Skip to content
Snippets Groups Projects
Commit 4f5e200d authored by Karl-Hermann Wieners's avatar Karl-Hermann Wieners
Browse files

namelist2config: remove array slice syntax from variables

parent b38b5506
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ Global
* files2config: use '.' short-cut in file definitions,
use global variables in directories
* namelist2config: re-enable here-doc detection to remove spurious data,
use global variables in namelists and output
use global variables in namelists and output, remove array slice syntax
* Fixes related to python3 and perl-5.26 compatibility
* Added tools to find differences/similarities between config files
(compconfig.py, diffconfig.py)
......
......@@ -158,7 +158,7 @@ while(<>) {
}
next;
}
elsif(/^\s*(.*?)\s*=\s*(.*?)(\s*!\s*(.*?))?\s*$/) {
elsif(/^\s*(.*?)(?:\(\d+:\d+\))?\s*=\s*(.*?)(\s*!\s*(.*?))?\s*$/) {
if($open_value) {
$direct and print("\n");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment