-
Notifications
You must be signed in to change notification settings - Fork 470
give a detailed error message in case of indentation mismatches in multiline jsonnet blocks #1261
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
Conversation
johnbartholomew
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you fix the indentation? The new code doesn't match the rest of the file (which doesn't match google3 standard)
| if (chomp_trailing_nl) { | ||
| assert(data.back() == '\n'); | ||
| data.pop_back(); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the chomp_trailing_nl logic got dropped. I suspect that's causing the test failures (but haven't verified)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, sorry, this is still WIP. Will fix soon.
|
@simonff Do you expect to have time to update this? If not, I can take it over to get it merged. |
|
Please take it over if you have time! |
Co-Authored-By: John Bartholomew <jpa.bartholomew@gmail.com>
911b6ff to
8805d9c
Compare
|
Rebased, cleaned up the whitespace, put chomping back in, updated the test in lexer_test.cpp. |
No description provided.