Skip to content

Commit 7395ae4

Browse files
coskunergand3zd3z
authored andcommitted
zephyr-build: fix DTS parser for Windows
The zephyr-build DTS parser fails on Windows, due to the "\r\n" whitespace used on that platform. Accept the "\r" in addition to the "\n" to allow it to parse successfully. Fixes: #68 See: #68 Signed-off-by: coskun ergan <[email protected]>
1 parent a341bc5 commit 7395ae4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zephyr-build/src/devicetree/dts.pest

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@ nodename = @{
7474
(ASCII_ALPHANUMERIC | "_" | "," | "." | "?" | "-" | "@" | "#")+
7575
}
7676

77-
WHITESPACE = _{ " " | "\n" | "\t" }
77+
WHITESPACE = _{ " " | "\r" | "\n" | "\t" }

0 commit comments

Comments
 (0)