Skip to content

Commit

Permalink
- Dump comments in the correct place for for-equations/statements.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@23299 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Nov 10, 2014
1 parent 126efba commit 0c1daf1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Compiler/Template/SCodeDumpTpl.tpl
Expand Up @@ -367,17 +367,17 @@ match for_equation
let eq_str = (eEquationLst |> e => dumpEEquation(e, options) ;separator="\n")
let cmt_str = dumpComment(comment, options)
<<
for <%index%> in <%range_str%> loop<%cmt_str%>
for <%index%> in <%range_str%> loop
<%eq_str%>
end for;
end for<%cmt_str%>;
>>
case EQ_FOR(__) then
let eq_str = (eEquationLst |> e => dumpEEquation(e, options) ;separator="\n")
let cmt_str = dumpComment(comment, options)
<<
for <%index%> loop<%cmt_str%>
for <%index%> loop
<%eq_str%>
end for;
end for<%cmt_str%>;
>>
end dumpForEEquation;

Expand Down Expand Up @@ -491,17 +491,17 @@ match for_statement
let body_str = dumpStatements(forBody, options)
let cmt_str = dumpComment(comment, options)
<<
for <%index%> in <%range_str%> loop<%cmt_str%>
for <%index%> in <%range_str%> loop
<%body_str%>
end for;
end for<%cmt_str%>;
>>
case ALG_FOR(__) then
let body_str = dumpStatements(forBody, options)
let cmt_str = dumpComment(comment, options)
<<
for <%index%> loop<%cmt_str%>
for <%index%> loop
<%body_str%>
end for;
end for<%cmt_str%>;
>>
end dumpForStatement;

Expand Down

0 comments on commit 0c1daf1

Please sign in to comment.