summaryrefslogtreecommitdiff
path: root/src/wast-lexer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/wast-lexer.cc')
-rw-r--r--src/wast-lexer.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wast-lexer.cc b/src/wast-lexer.cc
index 59bc0d71..05ac736a 100644
--- a/src/wast-lexer.cc
+++ b/src/wast-lexer.cc
@@ -540,7 +540,8 @@ Token WastLexer::GetKeywordToken() {
}
if (IsTokenTypeBare(info->token_type)) {
return BareToken(info->token_type);
- } else if (IsTokenTypeType(info->token_type)) {
+ } else if (IsTokenTypeType(info->token_type) ||
+ IsTokenTypeRefKind(info->token_type)) {
return Token(GetLocation(), info->token_type, info->value_type);
} else {
assert(IsTokenTypeOpcode(info->token_type));