ecere/sys/ECON: Fixed ECON parsing bug with : inside string
authorJerome St-Louis <jerome@ecere.com>
Wed, 3 Aug 2016 11:20:32 +0000 (07:20 -0400)
committerJerome St-Louis <jerome@ecere.com>
Wed, 3 Aug 2016 11:20:32 +0000 (07:20 -0400)
doc/ecere/ecere/sys/_global-defs.econ
ecere/src/sys/JSON.ec

index 73a7038..8ab7f74 100644 (file)
@@ -3,7 +3,7 @@
    description = "Platform independent System API (Files, Multithreading, Unicode, ...)",
    defines = [
       {
-         "Pi",
+         "ecere::sys::Pi",
          {
             description = "Ratio of a circle's circumference to its diameter; Measure of a half-circle angle in radians (180°)"
          }
index f2d97b7..1801684 100644 (file)
@@ -507,7 +507,7 @@ private:
                break;
             }
          }
-         else if(ch == '\"' || (!comment && ch && !isalpha(ch) && !isdigit(ch) && ch != '_'))
+         else if(ch == '\"' || (!quoted && !comment && ch && !isalpha(ch) && !isdigit(ch) && ch != '_'))
          {
             if(quoted && ch == '\"' && wasQuoted)
                *wasQuoted = true;