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

Serialization fails for comment between concatenated strings #209

Open
andreasjakobik opened this issue May 31, 2021 · 0 comments
Open

Serialization fails for comment between concatenated strings #209

andreasjakobik opened this issue May 31, 2021 · 0 comments

Comments

@andreasjakobik
Copy link

andreasjakobik commented May 31, 2021

Hello,

Having comments between concatenated strings does not seem to work w.r.t. serialization.

Here is an example, original file:

list l1 {
        key id;

        leaf id {
            type string;
        }
        leaf x {
            type int32;
        }
        leaf y {
            type int32;
        }
        must "x > y" + 
            /* notice this comment in between */
             " and x * y < 100";
}

After serialization, the following is produced (notice must statement is now syntactically incorrect plus comment is gone):

list l1 {
        key id;

        leaf id {
            type string;
        }
        leaf x {
            type int32;
        }
        leaf y {
            type int32;
        }
        must "x > y" and x * y < 100";
}

Thanks,
Andreas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants