From 82274ec616ebb9745819fbdd72ab7f499bff0626 Mon Sep 17 00:00:00 2001 From: coskunergan Date: Thu, 13 Mar 2025 12:02:02 +0300 Subject: [PATCH] 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: https://github.com/zephyrproject-rtos/zephyr-lang-rust/issues/68 Signed-off-by: coskun ergan --- zephyr-build/src/devicetree/dts.pest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zephyr-build/src/devicetree/dts.pest b/zephyr-build/src/devicetree/dts.pest index 8a521580..5db1b95f 100644 --- a/zephyr-build/src/devicetree/dts.pest +++ b/zephyr-build/src/devicetree/dts.pest @@ -74,4 +74,4 @@ nodename = @{ (ASCII_ALPHANUMERIC | "_" | "," | "." | "?" | "-" | "@" | "#")+ } -WHITESPACE = _{ " " | "\n" | "\t" } +WHITESPACE = _{ " " | "\r" | "\n" | "\t" }