We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isExpression
1 parent fd400b3 commit 2c940d3Copy full SHA for 2c940d3
src/language/semantics/expression.ts
@@ -11,7 +11,7 @@ export const isExpression = (
11
): node is Expression =>
12
typeof node === 'object' &&
13
typeof node[0] === 'string' &&
14
- node[0][0] === '@' &&
+ /^@[^@]/.test(node['0']) &&
15
(!('1' in node) || typeof node[1] === 'object' || typeof node[1] === 'string')
16
17
export const isExpressionWithArgument = <Keyword extends `@${string}`>(
0 commit comments