From 4f7ca35e2d285d7eb81a7e7de40ad0ab8cb1a289 Mon Sep 17 00:00:00 2001 From: Pixel998 Date: Mon, 1 Dec 2025 00:54:14 +0300 Subject: [PATCH] chore: fix typos in comments --- src/hooks/use-ast.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/use-ast.ts b/src/hooks/use-ast.ts index 2b885c9..6b51794 100644 --- a/src/hooks/use-ast.ts +++ b/src/hooks/use-ast.ts @@ -38,7 +38,7 @@ export function useAST() { }); astParseResult = { ast, ok: true }; } catch (err) { - // error occured e.g. because the JS code cannot be parsed into an AST, or the esquery selector is no valid selector --> just ignore (no highlighted ranges) + // error occurred e.g. because the JS code cannot be parsed into an AST, or the esquery selector is no valid selector --> just ignore (no highlighted ranges) astParseResult = { ok: false, errors: [err as FileError] }; } break; @@ -140,7 +140,7 @@ function getEsqueryMatchedNodes(ast: unknown, esquerySelector: string) { ) as unknown[]; return esqueryMatchedNodes; } catch { - // error occured e.g. because the esquery selector is no valid selector --> just ignore (no nodes matched --> no highlighted ranges) + // error occurred e.g. because the esquery selector is no valid selector --> just ignore (no nodes matched --> no highlighted ranges) } } return [];