mirror of https://github.com/astral-sh/ruff
Lex Jupyter line magic with `Mode::Jupyter` This PR adds a new token `MagicCommand`[^1] which the lexer will recognize when in `Mode::Jupyter`. The rules for the lexer is as follows: 1. Given that we are at the start of line, skip the indentation and look for [characters that represent the start of a magic command]( |
||
|---|---|---|
| .. | ||
| error.rs | ||
| format.rs | ||
| lib.rs | ||
| mode.rs | ||