Merge pull request #2554 from amaanq/debug-bug

fix(query): debug print uses wrong variable
This commit is contained in:
Amaan Qureshi 2023-08-23 17:36:51 -04:00 committed by GitHub
commit 39bbd9867d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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(