File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -303,9 +303,6 @@ function BaseModelicaComposition(input_list)
303303 elseif input isa BaseModelicaAnyEquation
304304 push! (equations, input)
305305 elseif input isa BaseModelicaAnnotation
306- # For now, treat annotations as part of equations
307- # (they appear in equation sections)
308- push! (equations, input)
309306 end
310307 end
311308 BaseModelicaComposition (components, equations, initial_equations)
@@ -442,7 +439,7 @@ spc = Drop(Star(Space()))
442439 subscript = (E " :" > BMColon) | expression
443440 array_subscripts. matcher = E " [" + subscript + Star (E " ," + subscript) + E " ]" |>
444441 BaseModelicaArraySubscripts
445- annotation_comment = E " annotation" + class_modification > BaseModelicaAnnotation
442+ annotation_comment = E " annotation" + class_modification | > BaseModelicaAnnotation
446443 comment. matcher = (string_comment + annotation_comment[0 : 1 ]) |> (x -> length (x) == 1 ? x[1 ] : BaseModelicaString (join ([string (elem) for elem in x], " " )))
447444
448445 enumeration_literal = IDENT + comment
You can’t perform that action at this time.
0 commit comments