Created
March 21, 2014 04:59
-
-
Save jkrems/9679805 to your computer and use it in GitHub Desktop.
CSON with wrong indentation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> CSON.parse('a: 2\n b: 3\n c: 4') | |
Error: Syntax error on line 3: indentation is ambiguous | |
1 : a: 2 | |
2 : b: 3 | |
3 : c: 4 | |
^ :~~^ | |
at Preprocessor.Preprocessor.consumeIndentation (/Users/jankrems/Projects/itier/libs/cson-safe/node_modules/coffee-script-redux/lib/preprocessor.js:155:17) | |
at Preprocessor.Preprocessor.process (/Users/jankrems/Projects/itier/libs/cson-safe/node_modules/coffee-script-redux/lib/preprocessor.js:190:14) | |
at Function.Preprocessor.Preprocessor.process (/Users/jankrems/Projects/itier/libs/cson-safe/node_modules/coffee-script-redux/lib/preprocessor.js:22:38) | |
at Object.CoffeeScript.parse (/Users/jankrems/Projects/itier/libs/cson-safe/node_modules/coffee-script-redux/lib/module.js:47:35) | |
at Object.parse (/Users/jankrems/Projects/itier/libs/cson-safe/lib/cson-safe.js:216:21) | |
at repl:1:7 | |
at REPLServer.self.eval (repl.js:110:21) | |
at Interface.<anonymous> (repl.js:239:12) | |
at Interface.EventEmitter.emit (events.js:95:17) | |
at Interface._onLine (readline.js:202:10) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment