|
@@ -40,10 +40,14 @@ module.exports = class Parser {
|
40
|
40
|
type: 'functionCall',
|
41
|
41
|
args: [],
|
42
|
42
|
subtree: [],
|
43
|
|
- functionName: this.tokenStream.eat(tokenTypes.LITERAL).value
|
|
43
|
+ functionName: this.tokenStream.eat(tokenTypes.LITERAL).value,
|
44
|
44
|
})
|
45
|
45
|
|
46
|
|
- while (![tokenTypes.CPAREN, tokenTypes.EOF].includes(this.tokenStream.peek().type)) {
|
|
46
|
+ while (
|
|
47
|
+ ![tokenTypes.CPAREN, tokenTypes.EOF].includes(
|
|
48
|
+ this.tokenStream.peek().type,
|
|
49
|
+ )
|
|
50
|
+ ) {
|
47
|
51
|
if (this.tokenStream.peek().type === tokenTypes.ATTRIBUTE) {
|
48
|
52
|
elementNode.args.push(this.attribute())
|
49
|
53
|
} else if (this.tokenStream.peek().type === tokenTypes.QUOTE) {
|