Explorar o código

- fixed macro quote escaping

Laurent Bedubourg %!s(int64=19) %!d(string=hai) anos
pai
achega
a747be2dd3
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      std/mtwin/templo/Parser.hx

+ 6 - 0
std/mtwin/templo/Parser.hx

@@ -498,6 +498,9 @@ class Parser {
 						skip = true;
 						++i; 
 					}
+					else if (c == "\\" && n == "\""){
+						skip = true;
+					}
 					else if (c == "'"){
 						state = states.none;
 						result.add("\")");
@@ -510,6 +513,9 @@ class Parser {
 						skip = true;
 						++i;
 					}
+					else if (c == "\\" && n == "'"){
+						skip = true;
+					}
 					else if (c == "\""){
 						state = states.none;
 						result.add("\")");