mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-23 12:46:43 +00:00
feat: strictly match module-level comments (#770)
* feat: strictly match module-level comments * dev: update snapshot
This commit is contained in:
parent
7dfa0fb498
commit
c035f42676
109 changed files with 180 additions and 170 deletions
|
|
@ -124,7 +124,7 @@ pub fn run_with_sources<T>(source: &str, f: impl FnOnce(&mut LspUniverse, PathBu
|
|||
|
||||
if source.starts_with("//") {
|
||||
let first_line = source.lines().next().unwrap();
|
||||
let content = first_line.strip_prefix("//").unwrap().trim();
|
||||
let content = first_line.trim_start_matches("/").trim();
|
||||
|
||||
if let Some(path_attr) = content.strip_prefix("path:") {
|
||||
source = source.strip_prefix(first_line).unwrap().trim();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue