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>
This commit is contained in:
Ben Clayton 2022-11-01 22:45:35 +00:00 committed by Dawn LUCI CQ
parent 35da054624
commit 5e4fc69a69
1 changed files with 1 additions and 1 deletions

View File

@ -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)