diff options
author | Aleš Smodiš <aless@guru.si> | 2015-07-16 12:18:58 +0200 |
---|---|---|
committer | Aleš Smodiš <aless@guru.si> | 2015-07-16 12:18:58 +0200 |
commit | dc90704bca718c2214c782f78259c1bf6cb30f46 (patch) | |
tree | dd723f8a95349f4541d26351dd5620aaf49eb2ca | |
parent | 03a3c13ef4029efd837c621db2d17b55aebd9536 (diff) |
Bugfix: parsing of CRLF terminated definitions didn't work.
-rw-r--r-- | js/def_parser.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/def_parser.js b/js/def_parser.js index fd34e80..f09ecd1 100644 --- a/js/def_parser.js +++ b/js/def_parser.js @@ -134,8 +134,8 @@ } else if (c === '\r') { if (pos >= n) return null; // EOF - pos++; if (input.charAt(pos) !== '\n') throw new Error("CR character without a trailing LF at character #" + (pos-1)); + pos++; count = 0; is_line_start = true; row++; |