makepad/libs/code_language
Admin 62d4d1eb69 code editor: raw strings are strings in Splash and Rust highlighting, and a host can read the scroll -- r"…" and r#"…"# (Splash's new raw strings) colour as strings, across lines
- The Splash lexer reads `r"…"` and `r#"…"#` (any number of `#`, no
  escapes, spanning lines) as one string, carried across lines in a new
  RawString mode. An `r` ending a name is not one.
  SPLASH_LEXER_VERSION goes to 2.
- The Rust tokenizer also takes `r"…"` with no `#`; it already took
  `r#"…"#`.
- CodeEditor::scroll_pos says where the view is scrolled, so a host can
  return to it (Stage's code-timeline history).

Checked: cargo test --release -p makepad-code-language --lib (11,
raw_strings_are_strings_across_lines).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-02 10:24:12 +02:00
..
src code editor: raw strings are strings in Splash and Rust highlighting, and a host can read the scroll -- r"…" and r#"…"# (Splash's new raw strings) colour as strings, across lines 2026-10-02 10:24:12 +02:00
Cargo.toml Share language tokenizers with the code editor on work 2026-09-18 12:12:36 +02:00