Opened 5 years ago
Closed 8 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 , 5 years ago
Attachment: | TestCInterface.mo added |
---|
comment:1 by , 5 years ago
Summary: | OMEdit (nearly) deletes a comment → OMEdit (nearly) deletes comments |
---|
comment:2 by , 5 years ago
Description: | modified (diff) |
---|
comment:3 by , 5 years ago
Description: | modified (diff) |
---|
by , 5 years ago
by , 5 years ago
Attachment: | script.mos added |
---|
comment:4 by , 5 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 , 8 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.mo
and run the scriptscript.mos
. It will output the contents as,instead of
Seems like something off with the parser.