Opened 15 years ago
Last modified 14 years ago
#1143 closed defect (fixed)
Allow \ in the documentation (from MathCore)
Reported by: | Jan Brugård | Owned by: | Jan Brugård |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | Jan Brugård, |
Description
I don't know if this should be a ticket on the kernel or system designer, feel free to change.
If having a class with a \ in the documentation, it is not possible to open that class, the error message is about illegal tokens.
model test annotation(Diagram(coordinateSystem(extent={{-100.0,-100.0},{100.0,100.0}}, preserveAspectRatio=true, initialScale=0.1, grid={10,10})), Documentation(info=" <em>Extras\Libraries\CommunicationMSWindows.dll</em>", revisions="")); end test;
I think this could be allowed since it is in the Documentation, and Dymola allows it, so it will be a problem with libraries developed in Dymola.
If this should not be allowed, close this ticket. (But a very nice, and user friendly solution would be to detect all / in the documentation and change them to something else like ...)
Change History (2)
comment:1 by , 15 years ago
comment:2 by , 14 years ago
Solved in r6098, with testcase testsuite/parser/DocumentationBackslash.mo
{{{[a.mo:2:14-2:15:writable] Warning: Lexer treating \ as
, since \L is not a valid Modelica escape sequence.
[a.mo:2:24-2:25:writable] Warning: Lexer treating \ as
, since \C is not a valid Modelica escape sequence.}}}
http://intranet/trac/mathmodelica/ticket/2609