diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2010-09-20 16:33:34 -0600 |
---|---|---|
committer | Jon Loeliger <jdl@jdl.com> | 2010-09-21 10:15:51 -0500 |
commit | 8773e12fa9f5109172a779aa2a83b4464e5273cc (patch) | |
tree | c35ff080647b835570b4ffbf139039fbcc188a6f /dtc-lexer.l | |
parent | 390635762d97502bda9c295fcb61b45d04d3d8d2 (diff) | |
download | dtc-8773e12fa9f5109172a779aa2a83b4464e5273cc.tar.gz |
Add merging of labelled subnodes. This patch allows the following
syntax:
/ {
child {
label: subchild {
};
};
};
&label {
prop = "value";
};
which will result in the following tree:
/ {
child {
label: subchild {
prop = "value";
};
};
};
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'dtc-lexer.l')
-rw-r--r-- | dtc-lexer.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dtc-lexer.l b/dtc-lexer.l index f8953f4..081e13a 100644 --- a/dtc-lexer.l +++ b/dtc-lexer.l @@ -109,7 +109,7 @@ static int pop_input_file(void); return DT_LITERAL; } -\&{LABEL} { /* label reference */ +<*>\&{LABEL} { /* label reference */ DPRINT("Ref: %s\n", yytext+1); yylval.labelref = xstrdup(yytext+1); return DT_REF; |