bevry / cson

CoffeeScript-Object-Notation. Same as JSON but for CoffeeScript objects.
Other
1.34k stars 56 forks source link

fail to parse #183

Closed sukrosono closed 3 years ago

sukrosono commented 3 years ago

here how i write the cson:

sukrosono:
  a= 'a'
  b= 'UCS4CNvE8zUHzd1FHk6MZnOA' #game

resulting:

    throw result;
    ^

[stdin]:2:9: error: unexpected newline
  a= 'a'
        ^

I solve the syntax error, it's used: instead of = shamelessly it's because of using copy-paste from js file Any error that belongs to an invalid cson file should error thrown when using the api right?. I got that error when calling from bash

balupton commented 3 years ago

Do you get this issue with https://github.com/groupon/cson-parser ? If so, you will need to post the issue there, and that is what this library now uses under the hood.