|
|
@ -17,9 +17,10 @@ export const jsepCurlyHook = { |
|
|
|
const nodes = context.gobbleExpressions(CCURLY_CODE); |
|
|
|
const nodes = context.gobbleExpressions(CCURLY_CODE); |
|
|
|
if (context.code === CCURLY_CODE) { |
|
|
|
if (context.code === CCURLY_CODE) { |
|
|
|
context.index += 1; |
|
|
|
context.index += 1; |
|
|
|
if (nodes.length > 0) { |
|
|
|
env.node = { |
|
|
|
env.node = nodes[0]; |
|
|
|
type: jsep.IDENTIFIER, |
|
|
|
} |
|
|
|
name: nodes.map((node) => node.name).join(' '), |
|
|
|
|
|
|
|
}; |
|
|
|
return env.node; |
|
|
|
return env.node; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
context.throwError('Unclosed }'); |
|
|
|
context.throwError('Unclosed }'); |
|
|
|