From 6e570a936063c751aebdae46106487385cc05661 Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Tue, 26 Jan 2021 19:28:51 +0000 Subject: [PATCH] Remove support for # comments. This CL removes support for parsing # style comments. Only the // comments are accepted now. Change-Id: I062c2a86149ecf828723c74f7168243678ee5870 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/38823 Commit-Queue: dan sinclair Commit-Queue: Ben Clayton Auto-Submit: dan sinclair Reviewed-by: Ben Clayton --- src/reader/wgsl/lexer.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/reader/wgsl/lexer.cc b/src/reader/wgsl/lexer.cc index 8d1b0f40f3..f201d75d54 100644 --- a/src/reader/wgsl/lexer.cc +++ b/src/reader/wgsl/lexer.cc @@ -143,8 +143,7 @@ void Lexer::skip_whitespace() { } void Lexer::skip_comments() { - // TODO(bclayton): Remove support for # comments - if (!matches(pos_, "#") && !matches(pos_, "//")) { + if (!matches(pos_, "//")) { return; }