You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+1 is valid in both CoffeeScript and JavaScript, but cson-parser treats it as an error:
λ ~: echo'+2'| cson2json/usr/local/lib/node_modules/cson/esnext/cli.js:72 throw result; ^SyntaxError: Syntax error on line 1, column 1: Unknown unary operator + at Op (/usr/local/lib/node_modules/cson/node_modules/cson-parser/lib/parse.js:190:17) at transformNode (/usr/local/lib/node_modules/cson/node_modules/cson-parser/lib/parse.js:216:12) at Block (/usr/local/lib/node_modules/cson/node_modules/cson-parser/lib/parse.js:94:12) at transformNode (/usr/local/lib/node_modules/cson/node_modules/cson-parser/lib/parse.js:216:12) at Object.parse (/usr/local/lib/node_modules/cson/node_modules/cson-parser/lib/parse.js:222:16)
The text was updated successfully, but these errors were encountered:
Hm, interesting. Is there a specific use case for using unary plus in a config? I'd be fine with adding it but I don't think it'd be something we would get around to soon.
+1
is valid in both CoffeeScript and JavaScript, butcson-parser
treats it as an error:The text was updated successfully, but these errors were encountered: