From 166ea002c1747bb34e204bc77df78b8c373d4198 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Guilloux?= Date: Sun, 6 Oct 2024 17:58:43 +0200 Subject: [PATCH] Fix #340: Always use raw strings for token regex (#341) --- nml/tokens.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nml/tokens.py b/nml/tokens.py index 2591feaf..821e2dd2 100644 --- a/nml/tokens.py +++ b/nml/tokens.py @@ -195,7 +195,7 @@ def t_ignore_comment(self, t): self.increment_lines(t.value.count("\n")) def t_ignore_whitespace(self, t): - "[ \t\r]+" + r"[ \t\r]+" pass def t_line_directive1(self, t):