Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
WilsonZiweiWang committed Dec 22, 2023
1 parent 1a1ebc8 commit 650361a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/tree-sitter/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 650361a

Please sign in to comment.