Skip to content

Commit 2c09148

Browse files
committed
use correct symbol for parsing to Annotation
1 parent 100e258 commit 2c09148

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/parser.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)