gpui-component/crates/ui/src/highlighter
Jason Lee 344e4407ff
input: Use Rope for InputState. (#1208)
This PR to change the Input to use
[ropey](https://github.com/cessen/ropey) to store the text.

## Break Changes

- The `value` method of `InputState` now returns a `SharedString` type.

```diff
- pub fn value(&self) -> &SharedString
+ pub fn value(&self) -> SharedString
```

Ref links:

- https://github.com/cessen/ropey
- https://zed.dev/blog/zed-decoded-rope-sumtree
- https://github.com/helix-editor/helix/blob/master/docs/architecture.md
2025-09-05 18:20:47 +08:00
..
languages highlighter: Fix highlight offset and reset highlight when replace all text. (#950) 2025-06-12 14:11:01 +08:00
highlighter.rs input: Use Rope for InputState. (#1208) 2025-09-05 18:20:47 +08:00
languages.rs text_view: Add to support selection. (#1169) 2025-08-28 18:09:30 +08:00
mod.rs highlighter: Use tree-sitter to highlight code. (#904) 2025-05-29 19:54:52 +08:00
registry.rs text_view: Add to support selection. (#1169) 2025-08-28 18:09:30 +08:00