mirror of https://gerrit.osmocom.org/osmo-ci
allow to terminate value_string[] with '{0}'
For a long time I was using '{}' to indicate a nulled out struct. But apparently '{0}' is the favored way to write that. Let's allow using this notation to terminate a value_string[]. Change-Id: Id2f5ba897ec83f34f8d3c4425353c0baf309bb6d
This commit is contained in:
parent
c100a6d098
commit
950b8ea380
|
@ -19,7 +19,7 @@ value_string_array_re = re.compile(
|
|||
re.MULTILINE | re.DOTALL)
|
||||
|
||||
members = r'(\.(value|str)\s*=\s*)?'
|
||||
terminator_re = re.compile('{}|{\s*' + members + '(0|NULL)\s*,'
|
||||
terminator_re = re.compile('{\s*}|{\s*0\s*}|{\s*' + members + '(0|NULL)\s*,'
|
||||
'\s*' + members + '(0|NULL)\s*}')
|
||||
errors_found = 0
|
||||
|
||||
|
|
Loading…
Reference in New Issue