Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Ignore comments in multiline strings #4

Open
vinivendra opened this issue Mar 12, 2020 · 0 comments
Open

Ignore comments in multiline strings #4

vinivendra opened this issue Mar 12, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@vinivendra
Copy link
Owner

Comments that are inside multiline strings (as a part of the string itself) are being treated as normal code comments and are being duplicated as comment nodes. For example:

// gryphon multiline
let a = """

// blabla

"""

...is translated as...

// gryphon multiline
internal val a: String = """
// blabla
"""

// blabla

Note the // blabla comment at the end of the Kotlin translation that shouldn't be there.

This only seems so happen when Gryphon is invoked with --no-main-file, since the comment handling for main files is different.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant