mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-15 11:51:22 +00:00
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:
parent
35da054624
commit
5e4fc69a69
@ -50,7 +50,7 @@ func (l *lexer) lex() error {
|
|||||||
return nil
|
return nil
|
||||||
case ' ', '\t':
|
case ' ', '\t':
|
||||||
l.next()
|
l.next()
|
||||||
case '\n':
|
case '\r', '\n':
|
||||||
l.next()
|
l.next()
|
||||||
case '@':
|
case '@':
|
||||||
l.tok(1, tok.Attr)
|
l.tok(1, tok.Attr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user