Fix token conflict detection bugs

This commit is contained in:
Max Brunsfeld 2019-01-16 20:56:36 -08:00
parent ae07d2d6e4
commit e4b9d9dfa9
4 changed files with 8 additions and 9 deletions

View file

@ -232,7 +232,7 @@ fn identify_keywords(
.filter(|token| {
for other_token in keywords.iter() {
if other_token != *token
&& token_conflict_map.does_match_same_string(token.index, other_token.index)
&& token_conflict_map.does_match_same_string(other_token.index, token.index)
{
info!(
"Keywords - exclude {} because it matches the same string as {}",