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

Add block comments and OCaml support #827 #832

Closed
wants to merge 3 commits into from
Closed

Add block comments and OCaml support #827 #832

wants to merge 3 commits into from

Conversation

fortierq
Copy link
Contributor

@fortierq fortierq commented Aug 3, 2021

I add one block comment for each line, and an optional comment_suffix in _SCRIPT_EXTENSIONS to end a comment block.
Since OCaml comments use *, I think that I need to escape it for regular expressions.
I get pytest errors with mirror files, but the files seem ok to me.

@mwouts
Copy link
Owner

mwouts commented Aug 31, 2021

Hi @fortierq , thank you for your PR. Sorry I was off for a while, now I am back and I'll have a look very soon

@mwouts
Copy link
Owner

mwouts commented Aug 31, 2021

Hi @fortierq , the PR looks great! I think the only thing left that you need to address is to take the suffix into account in jupytext.cell_reader.uncomment. Does that sound feasible?

Also I see that you've not used the pre-commit framework, maybe that page can be helpful https://jupytext.readthedocs.io/en/latest/developing.html (if you prefer not to use it that's not a problem, I can fix the files later on)

@mwouts mwouts mentioned this pull request Sep 7, 2021
@mwouts
Copy link
Owner

mwouts commented Sep 8, 2021

Thanks @fortierq for your contribution!
I have added a few more tests and fixes on top of your PR, and the result has been merged at #848

@mwouts mwouts closed this Sep 8, 2021
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