From 650361ad94d5680f01378c468fbda4d660be9e64 Mon Sep 17 00:00:00 2001 From: Ziwei Wang Date: Thu, 21 Dec 2023 10:07:26 -0500 Subject: [PATCH] Typo --- server/src/tree-sitter/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/tree-sitter/utils.ts b/server/src/tree-sitter/utils.ts index 87b9a293..d42a2fa0 100644 --- a/server/src/tree-sitter/utils.ts +++ b/server/src/tree-sitter/utils.ts @@ -78,13 +78,13 @@ export function isVariableReference (n: SyntaxNode): boolean { } /** - * Check if the node is an override other than `append`, `preprend` or `remove` + * Check if the node is an override other than `append`, `prepend` or `remove` */ export function isOverride (n: SyntaxNode): boolean { const parentType = n?.parent?.type switch (n.type) { case 'identifier': - return parentType === 'override' // As per the tree-sitter grammar, an identifier which has a parent of type override is an override other than `append`, `preprend` or `remove` + return parentType === 'override' // As per the tree-sitter grammar, an identifier which has a parent of type override is an override other than `append`, `prepend` or `remove` default: return false }