mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
glsl/tests: Handle windows \r\n new lines
Currently the praser for s expressions assumes that newlines will be \n, resulting in incorrect parsing on windows, where the newline is \r\n. This patch just adds \r? to the regular expression used to parse the s expressions, which fixes at 1 test on windows. Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
parent
077a1952cc
commit
26961e2cb5
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ def parse_sexp(sexp):
|
|||
into a sexp represented as nested lists containing strings.
|
||||
"""
|
||||
sexp_token_regexp = re.compile(
|
||||
'[a-zA-Z_]+(@[0-9]+)?|[0-9]+(\\.[0-9]+)?|[^ \n]')
|
||||
'[a-zA-Z_]+(@[0-9]+)?|[0-9]+(\\.[0-9]+)?|[^ \r?\n]')
|
||||
stack = [[]]
|
||||
for match in sexp_token_regexp.finditer(sexp):
|
||||
token = match.group(0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue