Skip to content

Commit 166ea00

Browse files
authored
Fix #340: Always use raw strings for token regex (#341)
1 parent b0406f4 commit 166ea00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nml/tokens.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def t_ignore_comment(self, t):
195195
self.increment_lines(t.value.count("\n"))
196196

197197
def t_ignore_whitespace(self, t):
198-
"[ \t\r]+"
198+
r"[ \t\r]+"
199199
pass
200200

201201
def t_line_directive1(self, t):

0 commit comments

Comments
 (0)