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
It's also possible to use equals signs for assignment within curly braces, even though CSON docs state that variable assignments aren't allowed in CSON data:
{foo:2; bar=1 } # CSON
{foo: 2,bar: 1}// JS
I know cson-parser uses coffee---------script for lexing/parsing, so it's no surprise that some vestiges of its old class syntax are still hanging around. Even so, these constructs should ideally be considered invalid by the parser.
The text was updated successfully, but these errors were encountered:
Nice find! Thanks for reporting this. Agreed - neither of those should be allowed. I assume it should be possible to exclude them by looking more closely at the AST nodes.
Parsing this:
... quite literally results in "this":
It's also possible to use equals signs for assignment within curly braces, even though CSON docs state that variable assignments aren't allowed in CSON data:
I know
cson-parser
usescoffee---------script
for lexing/parsing, so it's no surprise that some vestiges of its oldclass
syntax are still hanging around. Even so, these constructs should ideally be considered invalid by the parser.The text was updated successfully, but these errors were encountered: