Skip to content

Conversation

@simonff
Copy link
Contributor

@simonff simonff commented Jan 6, 2026

No description provided.

Copy link
Collaborator

@johnbartholomew johnbartholomew left a 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();
}
Copy link
Collaborator

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)

Copy link
Contributor Author

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.

@johnbartholomew
Copy link
Collaborator

@simonff Do you expect to have time to update this? If not, I can take it over to get it merged.

@simonff
Copy link
Contributor Author

simonff commented Feb 1, 2026

Please take it over if you have time!

Co-Authored-By: John Bartholomew <jpa.bartholomew@gmail.com>
@johnbartholomew
Copy link
Collaborator

Rebased, cleaned up the whitespace, put chomping back in, updated the test in lexer_test.cpp.

@johnbartholomew johnbartholomew merged commit 8805d9c into google:master Feb 9, 2026
12 checks passed
stephenamar-db pushed a commit to databricks/sjsonnet that referenced this pull request Feb 10, 2026
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

Successfully merging this pull request may close these issues.

2 participants