Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comments in the XMIR are not separated #3536

Open
h1alexbel opened this issue Nov 24, 2024 · 2 comments · May be fixed by #3591
Open

Comments in the XMIR are not separated #3536

h1alexbel opened this issue Nov 24, 2024 · 2 comments · May be fixed by #3591
Assignees
Labels

Comments

@h1alexbel
Copy link
Contributor

Consider the following EO program:

# Foo.
# Bar.
# Xyz.
[] > foo

XMIR I've got for this program:

<?xml version="1.0" encoding="UTF-8"?>
<!--This is XMIR - a dialect of XML, which is used to present a parsed EO program. For more information please visit https://news.eolang.org/2022-11-25-xmir-guide.html-->
<program dob="2024-11-19T15:27:42"
         ms="152"
         name="unknown"
         revision="a884294"
         time="2024-11-24T10:13:43.149561Z"
         version="0.42.0">
   <listing># Foo.
# Bar.
# Xyz.
[] &gt; foo
</listing>
   <errors/>
   <sheets/>
   <license/>
   <metas/>
   <objects>
      <o abstract="" line="4" name="foo" pos="0"/>
   </objects>
   <comments>
      <comment line="4">Foo.Bar.Xyz.</comment>
   </comments>
</program>

In the program we obviously had all three comments, separated by new line, however in XMIR we got just one "merged" comment. It would be convenient to to have information about newlines (\n) in the XMIR (in order to be able treat each individual comment granularly)

@h1alexbel
Copy link
Contributor Author

@maxonfjvipon take a look, please

@h1alexbel
Copy link
Contributor Author

@maxonfjvipon could you assign me?

h1alexbel added a commit to h1alexbel/eo that referenced this issue Dec 2, 2024
h1alexbel added a commit to h1alexbel/eo that referenced this issue Dec 2, 2024
h1alexbel added a commit to h1alexbel/eo that referenced this issue Dec 2, 2024
h1alexbel added a commit to h1alexbel/eo that referenced this issue Dec 2, 2024
h1alexbel added a commit to h1alexbel/eo that referenced this issue Dec 2, 2024
h1alexbel added a commit to h1alexbel/eo that referenced this issue Dec 2, 2024
h1alexbel added a commit to h1alexbel/eo that referenced this issue Dec 2, 2024
h1alexbel added a commit to h1alexbel/eo that referenced this issue Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants