1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07:00

Added CSV change to CDL.java

This commit is contained in:
Brian Russell 2016-04-12 14:13:15 -04:00
parent 25a87975be
commit 86cbfbc864

View file

@ -69,7 +69,12 @@ public class CDL {
for (;;) { for (;;) {
c = x.next(); c = x.next();
if (c == q) { if (c == q) {
break; //Handle escaped double-quote
if(x.next() != '\"')
{
x.back();
break;
}
} }
if (c == 0 || c == '\n' || c == '\r') { if (c == 0 || c == '\n' || c == '\r') {
throw x.syntaxError("Missing close quote '" + q + "'."); throw x.syntaxError("Missing close quote '" + q + "'.");