Skip to content

semicolon in annotation #9

Description

@thorade

In some cases a semicolon in the annotation is wrongly detected as ending the annotation.
http://bit.ly/1k6XR3U
As a fix, only assume you found the end of the annotation if you found a semicolon with a parantheses before it.

within Modelica.Thermal;
package HeatTransfer 
  "Library of 1-dimensional heat transfer with lumped elements"

  annotation (version="1.1", versionDate="2005-06-13",
    preferedView="info", Icon(
      Polygon(points=[-54, -6; -61, -7; -75, -15; -79, -24; -80, -34; -78, -42;
              -73, -49; -64, -51; -57, -51; -47, -50; -41, -43; -38, -35; -40,
            -27; -40, -20; -42, -13; -47, -7; -54, -5; -54, -6], style(color=10,
              fillColor=8)),
      Polygon(points=[-75, -15; -79, -25; -80, -34; -78, -42; -72, -49; -64, -
            51; -57, -51; -47, -50; -57, -47; -65, -45; -71, -40; -74, -33; -76,
              -23; -75, -15; -75, -15], style(color=0, fillColor=9)),
      Polygon(points=[39, -6; 32, -7; 18, -15; 14, -24; 13, -34; 15, -42; 20, -
            49; 29, -51; 36, -51; 46, -50; 52, -43; 55, -35; 53, -27; 53, -20;
            51, -13; 46, -7; 39, -5; 39, -6], style(color=9, fillColor=8)),
      Polygon(points=[18, -15; 14, -25; 13, -34; 15, -42; 21, -49; 29, -51; 36,
              -51; 46, -50; 36, -47; 28, -45; 22, -40; 19, -33; 17, -23; 18, -
            15; 18, -15], style(color=0, fillColor=9)),
      Polygon(points=[-9, -23; -9, -10; 18, -17; -9, -23], style(
          color=42,
          fillColor=42,
          fillPattern=1)),
      Line(points=[-41, -17; -9, -17], style(color=42, thickness=2)),
      Line(points=[-17, -40; 15, -40], style(color=42, thickness=2)),
      Polygon(points=[-17, -46; -17, -34; -40, -40; -17, -46], style(
          color=42,
          fillColor=42,
          fillPattern=1))));
end HeatTransfer;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions