Skip to content

Commit 615b2b7

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 d4f9036 commit 615b2b7

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 = _{ " " | "\n" | "\t" }
78+
COMMENT = _{ "/*" ~ (!"*/" ~ ANY)* ~ "*/" }

0 commit comments

Comments
 (0)