8000 Count lines in all cases. by toots · Pull Request #130 · ocaml-community/sedlex · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Count lines in all cases. #130

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

Merged
merged 2 commits into from
Jun 26, 2023
Merged

Count lines in all cases. #130

merged 2 commits into from
Jun 26, 2023

Conversation

toots
Copy link
Member
@toots toots commented Jun 1, 2023

It took me a while to track this down: we are not counting position lines when parsing from a string.

Is there any reason for that? This seems pretty counter-intuitive and I imagine most users would trip on that, expecting lines to be counted properly in all cases.

@alainfrisch alainfrisch removed their request for review June 1, 2023 15:48
@hhugo
Copy link
Contributor
hhugo commented Jun 1, 2023

You need to update comments and doc-comments in the ml and MLI files.

@toots
Copy link
Member Author
toots commented Jun 1, 2023

Sounds good I was sending this first to see if there was a consensus on the changes. I'll wrap this up, thanks!

@toots
Copy link
Member Author
toots commented Jun 3, 2023

Let's see about #131 first and then I'll rebase this one to use the changelog entry from it. Also, #131 implies this on all constructors I believe so this PR would just become a cleanup basically.

@hhugo
Copy link
Contributor
hhugo commented Jun 26, 2023

You can now rebase the PR and update doc-comments :)

@toots
Copy link
Member Author
toots commented Jun 26, 2023

Yeah, it became pretty trivial after all 😅

@hhugo
Copy link
Contributor
hhugo commented Jun 26, 2023

LGTM modulo dune fmt

@toots toots merged commit 7581a9d into master Jun 26, 2023
@toots toots deleted the count-lines branch June 26, 2023 15:51
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.

3 participants
0