mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
merging in gfxmonk's fix for reporting line numbers for unclosed { [ ( opening symbols
This commit is contained in:
parent
e87fa4293d
commit
c7dd31846d
2 changed files with 2 additions and 2 deletions
|
@ -288,7 +288,7 @@
|
|||
if (unclosed.length) {
|
||||
open = unclosed[0];
|
||||
line = open_line[open] + 1;
|
||||
throw new Error("unclosed " + (open) + " on line " + (line));
|
||||
throw new Error("unclosed " + open + " on line " + line);
|
||||
}
|
||||
};
|
||||
// We'd like to support syntax like this:
|
||||
|
|
|
@ -189,7 +189,7 @@ exports.Rewriter: class Rewriter
|
|||
if unclosed.length
|
||||
open: unclosed[0]
|
||||
line: open_line[open] + 1
|
||||
throw new Error("unclosed ${open} on line ${line}")
|
||||
throw new Error "unclosed $open on line $line"
|
||||
|
||||
# We'd like to support syntax like this:
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue