fix(query): debug print uses wrong variable

This commit is contained in:
Amaan Qureshi 2023-08-22 19:22:31 -04:00
parent b4649fbb56
commit 5c7098dd56
No known key found for this signature in database
GPG key ID: E67890ADC4227273

View file

@ -1907,7 +1907,7 @@ static bool ts_query__analyze_patterns(TSQuery *self, unsigned *error_offset) {
}
#ifdef DEBUG_ANALYZE_QUERY
printf("\nWalk states for rootless pattern step %u:\n", step_index);
printf("\nWalk states for rootless pattern step %u:\n", pattern_entry->step_index);
#endif
ts_query__perform_analysis(