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

Adjacent strings report a problem #2

Open
sirviot opened this issue Feb 10, 2020 · 3 comments
Open

Adjacent strings report a problem #2

sirviot opened this issue Feb 10, 2020 · 3 comments

Comments

@sirviot
Copy link

sirviot commented Feb 10, 2020

thing = "The quick brown fox jumped over the lazy dog.";

another_thing = "The quick brown fox"
    " jumped over the lazy dog.";

a_third_thing = "The quick" /* comment */ " brown fox " // another comment
    "jumped over the lazy dog.";

First text thing validates fine.

Second one another_thing reports " jumped over the lazy dog." as invalid with error message:

Expected a terminator libconfig(768)

Third text reports the same error for " brown fox ".

The documention states that these should all be valid.

How can I help to make the syntax checking allow multiline versions.?

@sirviot
Copy link
Author

sirviot commented Feb 10, 2020

It seems that for three or more lines, only the second one is reported as invalid.

my_text = "The quick"
    " brown fox"
    " jumped over"
    " the lazy dog.";

In the example only the second line " brown fox" is reported as invalid.

@wegman12
Copy link
Owner

I appologize for the delay, didn't see this until just now. Good catch on the error.

Feel free to fork, make any changes and submit a PR. I'll take a look and see if I can resolve, but probably won't get to it for a while.

@sirviot
Copy link
Author

sirviot commented Apr 20, 2020

Alright. I will try.

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