feat: handle enters in list or enum items (#1442)

* test: add tests about `onEnter`

* feat: handle enters in list or enum items
This commit is contained in:
Myriad-Dreamin 2025-03-05 12:30:47 +08:00 committed by GitHub
parent 78b80d41e4
commit f13b632ad2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 200 additions and 17 deletions

View file

@ -109,7 +109,7 @@ mod tests {
fn run(config: TestConfig) -> impl Fn(&mut LocalContext, PathBuf) {
fn test(ctx: &mut LocalContext, id: TypstFileId) {
let source = ctx.source_by_id(id).unwrap();
let rng = find_test_range(&source);
let rng = find_test_range_(&source);
let text = source.text()[rng.clone()].to_string();
let docs = find_module_level_docs(&source).unwrap_or_default();