Skip to content

Commit 1cab77b

Browse files
pillo79d3zd3z
authored andcommitted
dts.pest: Add support for comments in devicetree source files
This commit adds support for comments in devicetree source files by extending the existing parser grammar. The COMMENTS syntax is taken verbatim from a Pest example at https://pest.rs/book/grammars/syntax.html . Signed-off-by: Luca Burelli <[email protected]>
1 parent e53f6de commit 1cab77b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

zephyr-build/src/devicetree/dts.pest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,4 @@ nodename = @{
7575
}
7676

7777
WHITESPACE = _{ " " | "\r" | "\n" | "\t" }
78+
COMMENT = _{ "/*" ~ (!"*/" ~ ANY)* ~ "*/" }

0 commit comments

Comments
 (0)