commit | 5e4fc69a69fe8aa91f6813e2c1341a0afbff7dd2 | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Tue Nov 01 22:45:35 2022 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Nov 01 22:45:35 2022 +0000 |
tree | 88e0a8fc243e19254a6a4d6335270c897aededb9 | |
parent | 35da05462438b316889e88fe0f81a8e58500ee7a [diff] |
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 <bclayton@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
diff --git a/tools/src/tint/intrinsic/lexer/lexer.go b/tools/src/tint/intrinsic/lexer/lexer.go index c81a0ba..dcec9fe 100644 --- a/tools/src/tint/intrinsic/lexer/lexer.go +++ b/tools/src/tint/intrinsic/lexer/lexer.go
@@ -50,7 +50,7 @@ return nil case ' ', '\t': l.next() - case '\n': + case '\r', '\n': l.next() case '@': l.tok(1, tok.Attr)