From 72849787b1759494533b26378d636db6201ec03f Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 12 Mar 2018 07:52:57 -0700 Subject: [PATCH] Fix logic for identifying keyword capture token --- src/compiler/build_tables/lex_table_builder.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/build_tables/lex_table_builder.cc b/src/compiler/build_tables/lex_table_builder.cc index b43f9d09..2c0d8e10 100644 --- a/src/compiler/build_tables/lex_table_builder.cc +++ b/src/compiler/build_tables/lex_table_builder.cc @@ -174,7 +174,7 @@ class LexTableBuilderImpl : public LexTableBuilder { Symbol symbol = Symbol::terminal(i); bool matches_all_keywords = true; keyword_symbols.for_each([&](Symbol keyword_symbol) { - if (!shadowed_tokens_by_token[keyword_symbol.index].count(symbol)) { + if (!conflict_manager.possible_homonyms[symbol.index].count(keyword_symbol.index)) { matches_all_keywords = false; } });