modelica-tools / atom-language-modelica

Modelica language support for the atom editor
https://atom.io/packages/language-modelica
Other
8 stars 4 forks source link

Error in catching the end of annotations when code examples are in the documentation #17

Closed dietmarw closed 8 years ago

dietmarw commented 8 years ago

Here is an example where the current syntax highlighter currently fails:

model test
  annotation (Documentation(info="<html>
 <pre>
 A = [1,2,3;
   3,4,5;
   2,1,4];
 b = {10,22,12};
 x = Matrices.solve(A,b);
 Matrices.eigenValues(A);
 </pre>
</html>"));
end test;

is displayed in atom.io as: screenshot from 2015-10-15 19 02 33

tshort commented 8 years ago

This one's fixed in Borris' new grammar that we have the pull request for (#13). Toggling of annotations for this case is probably still broken. (I have one idea for how to fix it.)

thorade commented 8 years ago

Fixed by PR #13 If not, feel free to reopen.

dietmarw commented 8 years ago

Fix confirmed.