Opened 6 years ago
Closed 19 months ago
#5644 closed defect (fixed)
OMEdit (nearly) deletes comments
| Reported by: | massimo ceraolo | Owned by: | Adrian Pop |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.0.0 |
| Component: | Parser | Version: | |
| Keywords: | Cc: | Martin Sjölund |
Description (last modified by )
Consider the enclosed TestCInterface.mo.
to the following:
1) open "Extfun"
2) open the annotation
3) before end add:
// some text
4) click on save.
=> the text
// some textdisappears.
5) open TestCInterface
=> indeed text
// some text
has been moved outside "ExtFun"
Attachments (3)
Change History (9)
by , 6 years ago
| Attachment: | TestCInterface.mo added |
|---|
comment:1 by , 6 years ago
| Summary: | OMEdit (nearly) deletes a comment → OMEdit (nearly) deletes comments |
|---|
comment:2 by , 6 years ago
| Description: | modified (diff) |
|---|
comment:3 by , 6 years ago
| Description: | modified (diff) |
|---|
by , 6 years ago
by , 6 years ago
| Attachment: | script.mos added |
|---|
comment:4 by , 6 years ago
| Cc: | added |
|---|---|
| Component: | OMEdit → Parser |
| Owner: | changed from to |
| Status: | new → assigned |
comment:5 by , 5 years ago
That's because comments are put where elements can be put. No element can come after external, so the comment is added after it. The Absyn structure cannot represent this case.
comment:6 by , 19 months ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
This issue must have been solved some time ago
Note:
See TracTickets
for help on using tickets.

I made a simplified example. Use the file
P.moand run the scriptscript.mos. It will output the contents as,package P model M Real x; Real y; external \"C\" ; end M; // some texting // some text end P;instead of
package P model M Real x; Real y; external "C"; // some texting end M; // some text end P;Seems like something off with the parser.