Skip to content

Commit

Permalink
Fix unparsing of newlines in string comments
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@20140 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Apr 15, 2014
1 parent 863ecbb commit 21476b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Compiler/FrontEnd/DAEDump.mo
Expand Up @@ -722,7 +722,7 @@ algorithm

case SOME(SCode.COMMENT(comment = SOME(cmt)))
equation
cmt = System.escapedString(cmt,true);
cmt = System.escapedString(cmt,false);
then stringAppendList({" \"", cmt, "\""});

else "";
Expand Down
2 changes: 1 addition & 1 deletion Compiler/Template/DAEDumpTpl.tpl
Expand Up @@ -934,7 +934,7 @@ template dumpComment(SCode.Comment comment)
end dumpComment;

template dumpCommentStr(Option<String> comment)
::= match comment case SOME(cmt) then ' "<%System.escapedString(cmt,true)%>"'
::= match comment case SOME(cmt) then ' "<%System.escapedString(cmt,false)%>"'
end dumpCommentStr;

template dumpPathLastIndent(Absyn.Path path)
Expand Down
4 changes: 2 additions & 2 deletions Compiler/boot/LoadCompilerSources.mos
Expand Up @@ -5,8 +5,8 @@ if true then /* Suppress output */
setCommandLineOptions("+g=MetaModelica");
files := {
// "../Util/MessagePack.mo", // TODO: Add once we bootstrapped omc, maybe
// "../Util/File.mo", // TODO: Add once we bootstrapped omc
// "../BackEnd/SerializeModelInfo.mo", // TODO: Add once we bootstrapped omc
"../Util/File.mo", // TODO: Add once we bootstrapped omc
"../BackEnd/SerializeModelInfo.mo", // TODO: Add once we bootstrapped omc
"../FrontEnd/Absyn.mo",
"../FrontEnd/Algorithm.mo",
"../FrontEnd/Builtin.mo",
Expand Down

0 comments on commit 21476b8

Please sign in to comment.