aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/lex/Main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sksl/lex/Main.cpp')
-rw-r--r--src/sksl/lex/Main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sksl/lex/Main.cpp b/src/sksl/lex/Main.cpp
index 68c97f09df..9a30b8b32d 100644
--- a/src/sksl/lex/Main.cpp
+++ b/src/sksl/lex/Main.cpp
@@ -149,7 +149,8 @@ void writeCPP(const DFA& dfa, const char* lexer, const char* token, const char*
out << " if (!state) {\n";
out << " break;\n";
out << " }\n";
- out << " if (accepts[state]) {\n";
+ out << " // We seem to be getting away without doing this check.\n";
+ out << " /*if (accepts[state] != -1)*/ {\n";
out << " lastAccept = (" << token << "::Kind) accepts[state];\n";
out << " lastAcceptEnd = offset;\n";
out << " }\n";