Feature: Add support for spread operator #139
Annotations
2 errors
src/melody/melody-parser/TokenStream.js#L129
Error: ERROR: Invalid map key
33 | <twig:Component {{ ...vars }} />
34 | {% set numbers = [1, 2, ...moreNumbers] %}
> 35 | {% set ratings = {'foo': 10, 'bar': 5, ...moreRatings} %}
| ^
36 |
37 | {{ a is divisible by(b) }}
38 | {{ a is not divisible by(b) }}
Key must be a string, symbol or a number but was ...
❯ TokenStream.error src/melody/melody-parser/TokenStream.js:129:24
❯ Parser.error src/melody/melody-parser/Parser.js:456:21
❯ Parser.matchMapping src/melody/melody-parser/Parser.js:783:22
❯ Parser.matchPrimaryExpression src/melody/melody-parser/Parser.js:632:33
❯ Parser.getPrimary src/melody/melody-parser/Parser.js:586:21
❯ Parser.matchExpression src/melody/melody-parser/Parser.js:527:25
❯ Object.parse src/melody/melody-extension-core/parser/set.js:44:36
❯ Parser.matchTag src/melody/melody-parser/Parser.js:498:31
❯ Parser.parse src/melody/melody-parser/Parser.js:177:32
❯ Object.parse src/parser.js:82:24
|
|
This job failed
Loading