zed/crates/repl
Nathan Sobo 87d93033d1
Support Jupytext-style line comments for REPL evaluation ranges (#15073)
This adds support for detecting line comments in the
[Jupytext](https://jupytext.readthedocs.io/) format. When line comments
such as `# %%` is present, invoking `repl: run` will evaluate the code
between these line comments as a unit.

/cc @rgbkrk 

```py
# %%
# This is my first block
print(1)
print(2)

# %%
# This is my second block
print(3)
```

Release Notes:

- N/A

---------

Co-authored-by: Antonio Scandurra <me@as-cii.com>
Co-authored-by: Antonio <antonio@zed.dev>
Co-authored-by: Thorsten <thorsten@zed.dev>
Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
2024-07-24 11:53:58 +02:00
..
src Support Jupytext-style line comments for REPL evaluation ranges (#15073) 2024-07-24 11:53:58 +02:00
Cargo.toml Support Jupytext-style line comments for REPL evaluation ranges (#15073) 2024-07-24 11:53:58 +02:00
LICENSE-GPL repl: Add missing LICENSE file (#13161) 2024-06-17 14:13:12 -04:00