Give defaultLibrary semantic token modifier to items from standard library

This commit is contained in:
lhvy 2021-09-30 23:40:17 +10:00
parent 161a5e8724
commit 2b3baa8503
No known key found for this signature in database
GPG key ID: E6CAEAA74B3C53AC
11 changed files with 167 additions and 49 deletions

View file

@ -734,6 +734,23 @@ fn test_extern_crate() {
);
}
#[test]
fn test_default_library() {
check_highlighting(
r#"
//- minicore: option, iterators
use core::iter;
fn main() {
let foo = Some(92);
let nums = iter::repeat(foo.unwrap());
}
"#,
expect_file!["./test_data/highlight_default_library.html"],
false,
);
}
#[test]
fn test_associated_function() {
check_highlighting(