Skip to content

Commit

Permalink
Fix #340: Always use raw strings for token regex (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
glx22 authored Oct 6, 2024
1 parent b0406f4 commit 166ea00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nml/tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 166ea00

Please sign in to comment.