mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: allow '^' as anchor for dictionary scoping (issue #429)
- The existing ':' anchor works for rvalue substitutions
(Eg, ${:subdict.name}), but fails for lvalues, since it is
a punctuation token and parse stops there.
This commit is contained in:
@ -34,15 +34,16 @@ update
|
||||
key2 $key1;
|
||||
key3 val3;
|
||||
key2b ${..key2};
|
||||
key3b ${:key1};
|
||||
key3b $^key1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$update
|
||||
|
||||
key3 ${:subdict.key1};
|
||||
key3 ${:update.subdict.key3};
|
||||
// Can a leading '^' or ':' as anchor for scoping
|
||||
key3 $^subdict.key1;
|
||||
key3 ${^update.subdict.key3};
|
||||
key4 ${:update.subdict...subdict.key1};
|
||||
|
||||
// This is currently not working
|
||||
|
||||
Reference in New Issue
Block a user