aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/syntax_highlighting
Commit message (Collapse)AuthorAgeFilesLines
* Tag Self in impls as a TypeAliasLukas Wirth2021-05-162-4/+4
|
* Address commentshi-rustin2021-05-143-3/+25
|
* Apply async semantic token modifier to async/await keywordshi-rustin2021-05-142-0/+11
| | | | Only async semantic token modifier
* Fix block comment intra doc link injection rangesLukas Tobias Wirth2021-05-042-0/+4
|
* Fixed formattingBastian Kersting2021-04-261-1/+1
|
* Added mutable semantic token modifier for &mut self methodsBastian Kersting2021-04-262-4/+9
|
* Simplify highlight token match guardsLukas Wirth2021-04-232-102/+92
|
* Sort HlMod variants and ALL constLukas Wirth2021-04-236-46/+45
|
* Tag `yield` and `await` as ControlFlow in semantic highlightingLukas Wirth2021-04-232-5/+13
|
* Fix typo: comparision -> comparisonAdrian Stanciu2021-04-192-3/+3
|
* Check for rust doc code attributes like rustdoc doesLukas Wirth2021-04-192-23/+3
|
* Don't require all doc fences to be valid for identifying rust codeLukas Wirth2021-04-191-1/+3
|
* Accept `E<error_number>` notation in doctestsChayim Refael Friedman2021-04-181-2/+8
| | | | | | | ```compile_fail,E0000 ``` The code was stolen from rustdoc at https://github.com/rust-lang/rust/blob/392ba2ba1a7d6c542d2459fb8133bebf62a4a423/src/librustdoc/html/markdown.rs#L866-L867
* Merge #8354bors[bot]2021-04-134-16/+71
|\ | | | | | | | | | | | | | | 8354: Distinguishing between different operators in semantic highlighting r=matklad a=chetankhilosiya Co-authored-by: Chetan Khilosiya <[email protected]>
| * 8279: Fix the not operator use and test case fix.Chetan Khilosiya2021-04-083-10/+3
| |
| * 8279: Added initial implementation forChetan Khilosiya2021-04-082-14/+76
| | | | | | | | Operator semantic highlighting.
* | internal: fix flakiness of accidentally quadratic testAleksey Kladov2021-04-131-81/+17
| |
* | Fix typo: liner -> linearJakub Kądziołka2021-04-121-1/+1
| | | | | | :see_no_evil:
* | Let's try testing for "is not quadratic" conditionAleksey Kladov2021-04-101-0/+96
| |
* | 8024: Added the trait modifier for assoc types.Chetan Khilosiya2021-04-081-2/+12
|/
* Merge #8245bors[bot]2021-04-053-65/+45
|\ | | | | | | | | | | | | | | | | | | 8245: Properly resolve intra doc links in hover and goto_definition r=matklad a=Veykril Unfortunately involves a bit of weird workarounds due to pulldown_cmark's incorrect lifetimes on `BrokenLinkCallback`... I should probably open an issue there asking for the fixes to be pushed to a release since they already exist in the repo for quite some time it seems. Fixes #8258, Fixes #8238 Co-authored-by: Lukas Wirth <[email protected]>
| * Use new new docs string source mapping in goto_def and hoverLukas Wirth2021-03-301-31/+4
| |
| * Implement basic Documentation source to syntax range mappingLukas Wirth2021-03-303-34/+41
| |
* | Revert "8024: Added test case for highlighting trait items."Chetan Khilosiya2021-03-302-104/+0
| | | | | | | | This reverts commit d7dcd41801b319f64f3ca2ed22735ab70092e491.
* | 8024: Fix for function name change.Chetan Khilosiya2021-03-301-2/+2
| |
* | 8024: Added test case for highlighting trait items.Chetan Khilosiya2021-03-302-0/+104
| |
* | 8024: Updated the implementation for trait modifier.Chetan Khilosiya2021-03-306-20/+30
| | | | | | | | Fixed the test cases.
* | 8024: Added the trait modifier for methodsChetan Khilosiya2021-03-302-1/+22
|/ | | | method in impls and method calls will have trait modifier.
* Remove code duplication in highlight injectionLukas Wirth2021-03-291-29/+3
|
* Unleash macro 2.0 in hightlight and moreEdwin Cheng2021-03-274-8/+27
|
* syntax: return owned string instead of leaking stringcynecx2021-03-261-1/+1
|
* Show item info when hovering intra doc linksLukas Wirth2021-03-231-3/+3
|
* Don't use an untyped String for ActiveParam trackingLukas Wirth2021-03-201-1/+1
|
* Add `AttrsWithOwner` and clean up `source_map`Jonas Schievink2021-03-191-24/+19
|
* Move `AttrsOwnerNode` to syntax and make it publicJonas Schievink2021-03-191-31/+1
|
* Merge #8097bors[bot]2021-03-191-2/+3
|\ | | | | | | | | | | | | | | 8097: Parse extended_key_value_attributes r=jonas-schievink a=Veykril Companion PR https://github.com/rust-analyzer/ungrammar/pull/31 Co-authored-by: Lukas Wirth <[email protected]>
| * Parse extended_key_value_attributesLukas Wirth2021-03-191-2/+3
| |
* | Use a highlight modifier for intra doc linksLukas Wirth2021-03-1812-29/+53
| |
* | Track source file IDs in source mapping of AttrsLukas Wirth2021-03-181-5/+17
|/
* Semantic highlight intradoclinks in documentationLukas Wirth2021-03-1713-38/+114
|
* Inject highlight into block doc commentsLukas Wirth2021-03-173-28/+72
|
* Merge #8059bors[bot]2021-03-173-16/+153
|\ | | | | | | | | | | | | | | 8059: Move doc-comment highlight injection from AST to HIR r=matklad,jonas-schievink a=Veykril Fixes #5016 Co-authored-by: Lukas Wirth <[email protected]>
| * Remove quadratic attr source lookupLukas Wirth2021-03-171-1/+2
| |
| * Properly handle doc attributes in doc-comment highlight injectionLukas Wirth2021-03-163-6/+76
| |
| * Replace trait object boxing with extra AttrsOwnerNodeLukas Wirth2021-03-161-19/+48
| |
| * Move doc-comment highlight injection from AST to HIRLukas Wirth2021-03-161-14/+51
| |
* | don't clone types that are copy (clippy::clone_on_copy)Matthias Krüger2021-03-171-1/+1
|/
* Upgrade rowanAleksey Kladov2021-03-161-1/+1
| | | | Notably, new rowan comes with support for mutable syntax trees.
* Show whether a binding is mutable or not on hoverLukas Wirth2021-03-091-2/+3
|
* Add parsing benchmarkAleksey Kladov2021-02-091-5/+32
|