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 }