From 5c7098dd5684e4f5a931053f852d40a5205557d1 Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Tue, 22 Aug 2023 19:22:31 -0400 Subject: [PATCH] fix(query): debug print uses wrong variable --- lib/src/query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/query.c b/lib/src/query.c index f7c98375..e3fd27a0 100644 --- a/lib/src/query.c +++ b/lib/src/query.c @@ -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(