Commit bbc7d11
committed
Add support for overlay/fragments in DevicetreeLexer and update example DTS file
The DTS lexer had issues with recognizing overlay/fragment syntax, whereby in
the following snippet:
&i2c1 {
serlcd@72 {
compatible = "sparkfun,serlcd";
reg = <0x72>;
columns = <16>;
rows = <2>;
command-delay-ms = <10>;
special-command-delay-ms = <50>;
};
};
the "i2c1" was being tokenized as a Name.Attribute instead of a Name.Function,
causing the rest of the lexing to fail as it encountered the "@" character.
This fixes the issue by adding proper support for overlay/fragment syntax.
Signed-off-by: Benjamin Cabé <[email protected]>1 parent 28ec10c commit bbc7d11
3 files changed
Lines changed: 139 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
| |||
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
90 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
91 | 97 | | |
92 | 98 | | |
93 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
82 | 97 | | |
83 | 98 | | |
84 | 99 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments