mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-23 12:46:43 +00:00
fix: ignore invalid tokens in typst's syntax tree (#605)
This commit is contained in:
parent
fcde0efb22
commit
dc6a4482c1
5 changed files with 30 additions and 10 deletions
|
|
@ -148,7 +148,7 @@ pub fn run_with_sources<T>(source: &str, f: impl FnOnce(&mut LspUniverse, PathBu
|
|||
let mut last_pw = None;
|
||||
for (i, source) in sources.enumerate() {
|
||||
// find prelude
|
||||
let mut source = source.trim();
|
||||
let mut source = source.trim_start();
|
||||
let mut path = None;
|
||||
|
||||
if source.starts_with("//") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue