tool/dts: accept 'label: &ref { };' syntax

The combination of a label with a node supplement was not yet covered by
the dts/parse tool so far.

Fixes #4962
This commit is contained in:
Norman Feske 2023-07-11 14:07:53 +02:00
parent 93d6d71a1d
commit 7ce734d886

View File

@ -128,7 +128,7 @@ extract node {(/omit-if-no-ref/)?\s*(
extract nodename {[\w_][\w\d_\-,.+@]*(?=\s*§block)} {node}
# supplemental node content provided via '&label { ... }' at the top level
extract nodesupplement {§reflabel\d+°\s*§block\d+°;\n?} {content}
extract nodesupplement {(§labeldef\d+°\s*)?§reflabel\d+°\s*§block\d+°;\n?} {content}
###############################