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 <dsinclair@chromium.org>
Commit-Queue: Ben Clayton <bclayton@google.com>
Auto-Submit: dan sinclair <dsinclair@chromium.org>
Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
dan sinclair 2021-01-26 19:28:51 +00:00 committed by Commit Bot service account
parent 1461cd96d6
commit 6e570a9360
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}