expected `)`, got `,` at line 4
at Array.unexpected (node_modules/glsl-parser/lib/index.js:737:11)
at advance (node_modules/glsl-parser/lib/expr.js:219:18)
at Object.nud (node_modules/glsl-parser/lib/expr.js:87:3)
at expression (node_modules/glsl-parser/lib/expr.js:156:12)
at Object.<anonymous>.module.exports (node_modules/glsl-parser/lib/expr.js:116:12)
at parseexpr (node_modules/glsl-parser/lib/index.js:681:9)
at parse_expr (node_modules/glsl-parser/lib/index.js:650:14)
at write (node_modules/glsl-parser/lib/index.js:220:11)
at reader (node_modules/glsl-parser/lib/index.js:181:5)
at parseArray (node_modules/glsl-parser/direct.js:9:5)
I didn't realize this was valid glsl code, but apparently it is:
and it evaluates to the last statement.
So this fails:
Same with things like: