Skip to content

Commit

Permalink
[NF] Unescape raw Absyn.STRING
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#2321
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Mar 27, 2018
1 parent b4635bb commit 3a6cb88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/NFFrontEnd/NFInst.mo
Expand Up @@ -1859,7 +1859,7 @@ algorithm

case Absyn.Exp.INTEGER() then Expression.INTEGER(absynExp.value);
case Absyn.Exp.REAL() then Expression.REAL(stringReal(absynExp.value));
case Absyn.Exp.STRING() then Expression.STRING(absynExp.value);
case Absyn.Exp.STRING() then Expression.STRING(System.unescapedString(absynExp.value));
case Absyn.Exp.BOOL() then Expression.BOOLEAN(absynExp.value);

case Absyn.Exp.CREF()
Expand Down Expand Up @@ -2581,7 +2581,7 @@ algorithm
try
Absyn.STRING(str) := SCode.getElementNamedAnnotation(
InstNode.definition(InstNode.classScope(n)), "missingInnerMessage");
Error.addSourceMessage(Error.MISSING_INNER_MESSAGE, {str}, InstNode.info(n));
Error.addSourceMessage(Error.MISSING_INNER_MESSAGE, {System.unescapedString(str)}, InstNode.info(n));
else
end try;

Expand Down

0 comments on commit 3a6cb88

Please sign in to comment.