Skip to content

Commit 58b3897

Browse files
committed
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 58b3897

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

zephyr-build/src/devicetree/dts.pest

+1
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)