about summary refs log tree commit diff
path: root/crates/ide/src/syntax_highlighting/tests.rs
AgeCommit message (Collapse)AuthorLines
2022-07-05internal: Record all macro definitions in ItemScopeLukas Wirth-0/+7
2022-05-22feat: escape format specifier(close: #12258)bvanjoi-0/+10
2022-04-06fix: Attempt to resolve paths in const arguments heuristicallyLukas Wirth-0/+1
While we don't support const args in type inference yet, we can at least make use of the fallback path resolution to resolve paths in const args in the IDE layer to enable some features for them.
2022-04-06fix: Fix path qualifiers not resolving generic type params when shadowed by ↵Lukas Wirth-0/+5
trait
2022-04-01Code blocks with tilde also works like code blockLee Dogeon-0/+5
2022-03-23Adjust value in syntax highlighting benchmarkFlorian Diebold-1/+1
2022-03-20internal: Treat {global_}asm macros as unsafeLukas Wirth-1/+1
2022-03-20feat: Tag macro calls as unsafe if they expand to unsafe expressionsLukas Wirth-0/+18
2022-03-12Fixed code style issuesyipinliu-14/+3
2022-03-12Highlight escape sequences in byte stringsyipinliu-0/+14
2022-03-07Emit more detailed highlighting for `%`, `>>`, `<<`Luna Razzaghipour-0/+24
2022-03-06Add a macro case for the keyword highlighting test fixtureLukas Wirth-3/+7
2022-03-06Highlight `Self` as a keyword by defaultLukas Wirth-0/+20
2022-03-04Preserve order of generic argshkalbasi-0/+7
2022-03-03slightly improve highlighting performance for derive annotated itemsLukas Wirth-3/+1
2022-03-03fix: Fix semantic highlighting breaking for lifetimes in macrosLukas Wirth-0/+24
2022-02-26Rename test highlighting output filesLukas Wirth-28/+19
2022-02-26Split up highlighting tests a bit moreLukas Wirth-67/+83
2022-02-26Re-order and cleanup highlighting testsLukas Wirth-202/+196
2022-01-08fix: Fix outline modules spilling inner doc injections into their parentLukas Wirth-0/+10
2022-01-07Use `FileAstId<ast::Adt>` in nameres where appropriate insteadLukas Wirth-0/+10
2022-01-02Fix tool module classification not working correctlyLukas Wirth-0/+1
2021-12-04fix: Fix self keyword not being tagged as such in highlighting properlyLukas Wirth-0/+1
2021-12-03SimplifyLukas Wirth-0/+1
2021-12-01add testJake Heinz-0/+9
2021-10-28Enable auto-import and qualify-path in derive attributesLukas Wirth-0/+1
2021-10-28Refactor ide handling for paths in derive inputsLukas Wirth-9/+1
2021-10-01Merge #10413bors[bot]-0/+1
10413: fix: Fix format highlighting with `concat!` and `unreachable!` r=jonas-schievink a=jonas-schievink Last item in https://github.com/rust-analyzer/rust-analyzer/issues/10394, closes https://github.com/rust-analyzer/rust-analyzer/issues/10394 Also documents why/how `is_format_string` even works, since I found that nontrivial. bors r+ Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
2021-10-01Fix format highlighting with `concat!`Jonas Schievink-0/+1
2021-10-01Merge #10403bors[bot]-0/+44
10403: feat: Add semantic token modifier for crate root r=Veykril a=lhvy Resolves #9073 I managed to implement crate root highlighting for crates mentioned specifically by name (e.g. `serde` in `use serde::Serialize;`), but not for crates referred to with `crate` or `super`. How could I implement this? > P.S. I'm participating in [Hacktoberfest 2021](https://hacktoberfest.digitalocean.com/). If this PR is up to standard and merged, I'd appreciate if the `hacktoberfest-accepted` label could be added. Thanks! Co-authored-by: lhvy <me@lhvy.dev>
2021-10-01Add semantic token modifier for crate rootlhvy-0/+44
2021-10-01Expand `asm!` to `format_args!`Jonas Schievink-0/+3
2021-09-30Merge #10398bors[bot]-0/+17
10398: Give defaultLibrary semantic token modifier to items from standard library r=Veykril a=lhvy Fixes #8999, fixes #2155 `builtInCrates` could be an alternate name to `defaultLibrary`, which one is better? > P.S. I'm participating in [Hacktoberfest 2021](https://hacktoberfest.digitalocean.com/). If this PR is up to standard and merged, I'd appreciate if the `hacktoberfest-accepted` label could be added. Thanks! Co-authored-by: lhvy <me@lhvy.dev> Co-authored-by: Lucas <me@lhvy.dev>
2021-09-30Work around tidy checkJonas Schievink-2/+2
2021-10-01Give defaultLibrary semantic token modifier to items from standard librarylhvy-0/+17
2021-09-30Add `const_format_args!` builtin macro, fix highlightingJonas Schievink-4/+14
2021-09-30Less hacky `assert!` expansionJonas Schievink-0/+5
2021-09-30Fix format string highlighting in `panic!`Jonas Schievink-0/+27
2021-09-21Add a mirror function-like proc-macro expander for testsLukas Wirth-5/+6
2021-09-15Don't highlight unsafe traits as unsafe in safe implsLukas Wirth-22/+10
2021-09-14Add some more attribute ide testsLukas Wirth-0/+2
2021-07-13Assign mutable semantic token modifier to assignment operatorsLukas Wirth-0/+1
2021-06-28Resolve attribute paths in attribute highlightingLukas Wirth-1/+1
2021-06-23Add `public` semantic token modifier for public itemsAramis Razzaghipour-1/+9
2021-06-15Highlight unsafe trait refs as unsafe only in impl blocks and definitionsLukas Wirth-0/+5
2021-06-11Highlight tuple field accesses correctlyLukas Wirth-2/+2
2021-06-09Don't descend MacroCall TokenTree delimitersLukas Wirth-0/+5
2021-05-26Fix bug where library functions were not highlighted as suchAramis Razzaghipour-1/+7
2021-05-24Add testing of foreign item highlightingAramis Razzaghipour-0/+38
2021-05-23Give ‘unsafe’ semantic token modifier to unsafe traitsAramis Razzaghipour-0/+3