From 5e4fc69a69fe8aa91f6813e2c1341a0afbff7dd2 Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Tue, 1 Nov 2022 22:45:35 +0000 Subject: [PATCH] tools/intrinsic: Handle CRLF Fixes cryptic error message: error calling Sem: src/tint/intrinsics.def:14:1: unexpected ' Change-Id: Ic343e77f6a1976ebdc4952eb590751c34b014be8 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/108143 Commit-Queue: Ben Clayton Reviewed-by: Dan Sinclair Kokoro: Kokoro --- tools/src/tint/intrinsic/lexer/lexer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/src/tint/intrinsic/lexer/lexer.go b/tools/src/tint/intrinsic/lexer/lexer.go index c81a0baa36..dcec9fec19 100644 --- a/tools/src/tint/intrinsic/lexer/lexer.go +++ b/tools/src/tint/intrinsic/lexer/lexer.go @@ -50,7 +50,7 @@ func (l *lexer) lex() error { return nil case ' ', '\t': l.next() - case '\n': + case '\r', '\n': l.next() case '@': l.tok(1, tok.Attr)