aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/syntax_highlighting
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Infra for "unit" benchmarkingAleksey Kladov2021-02-091-10/+12
|
* Classify function calls as functions when shadowed by typesLukas Wirth2021-01-282-0/+8
|
* Merge #7353bors[bot]2021-01-223-4/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7353: Add LifetimeParam and ConstParam to CompletionItemKind r=matklad a=Veykril Adds `LifetimeParam` and `ConstParam` to `CompletionItemKind` and maps them both to `TypeParam` in the protocol conversion as there are no equivalents, so nothing really changes there. `ConstParam` could be mapped to `Const` I guess but I'm split on whether that would be better? Additions were solely inspired by (the single) test output for const params. Also sorts the variants of `CompletionItemKind` and its to_proto match. Co-authored-by: Lukas Wirth <[email protected]>
| * Move SymbolKind to ide_dbLukas Wirth2021-01-203-4/+5
| |
* | .Aleksey Kladov2021-01-192-2/+2
|/
* Wrap remaining self/super/crate in Name{Ref}Lukas Wirth2021-01-151-13/+9
|
* Handle self/super/crate in PathSegment as NameRefLukas Wirth2021-01-155-44/+27
|
* Use upstream TextSize APIAleksey Kladov2021-01-132-15/+3
|
* Merge #7239bors[bot]2021-01-101-1/+1
|\ | | | | | | | | | | | | | | 7239: Replace SyntaxKind usage with T! macro where applicable r=lnicola a=Veykril https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/dev/style.md#token-names Co-authored-by: Lukas Wirth <[email protected]>
| * Replace SyntaxKind usage with T! macro where applicableLukas Wirth2021-01-101-1/+1
| |
* | Fix typo, parentheses is pluralLaurențiu Nicola2021-01-109-133/+133
|/
* Merge #6238bors[bot]2021-01-1011-302/+345
|\ | | | | | | | | | | | | | | | | | | 6238: Split punctuation semantic highlighting up into more tags r=matklad a=Veykril Open question would be the name of the delimiter modifiers. I chose them this was as I see them this way but from what I remember people tend to mix the names however they like. So maybe using `delimSquare`, `delimCurly`, `delimRound` would be better. That would also go well with `angle` becoming `delimAngle`? Closes #6152 Co-authored-by: Lukas Wirth <[email protected]>
| * Split punctuation semantic highlighting up into more tagsLukas Wirth2021-01-1011-302/+345
| |
| |
| \
*-. \ Merge #7206 #7231bors[bot]2021-01-103-10/+13
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7206: Use hir::GenericParam in ide_db::Definition instead of relisting all 3 r=Veykril a=Veykril Basically just this: ```diff pub enum Definition { Macro(MacroDef), Field(Field), ModuleDef(ModuleDef), SelfType(Impl), Local(Local), - TypeParam(TypeParam), - LifetimeParam(LifetimeParam), - ConstParam(ConstParam), + GenericParam(GenericParam), Label(Label), } ``` 7231: Cleaner API r=matklad a=matklad bors r+ 🤖 Co-authored-by: Lukas Wirth <[email protected]> Co-authored-by: Aleksey Kladov <[email protected]>
| | * Cleaner APIAleksey Kladov2021-01-102-7/+8
| |/ |/|
| * Use hir::GenericParam in ide_db::Definition instead of relisting all 3Lukas Wirth2021-01-101-3/+5
|/
* Replace state with functionAleksey Kladov2021-01-101-46/+36
|
* Refactor highlightingAleksey Kladov2021-01-092-1/+518
|
* SimplifyAleksey Kladov2021-01-091-81/+49
|
* Better highlight for fixturesAleksey Kladov2021-01-092-2/+6
|
* SimplifyAleksey Kladov2021-01-091-51/+27
|
* Better namesAleksey Kladov2021-01-092-15/+16
|
* Reduce duplicationAleksey Kladov2021-01-091-7/+5
|
* Shorten namesAleksey Kladov2021-01-094-55/+38
|
* Shorten frequent namesAleksey Kladov2021-01-095-81/+81
|
* Rename dummy -> noneAleksey Kladov2021-01-093-15/+15
|
* Simplify highlighting infraAleksey Kladov2021-01-088-88/+260
| | | | This also fixes the killer whale bug
* Better fixture highlightAleksey Kladov2021-01-073-4/+119
|
* Formatting.Mara Bos2021-01-011-2/+11
|
* Add support for Rust 2021.Mara Bos2021-01-011-1/+1
|
* Add ConstParams to the ide layerLukas Wirth2021-01-013-0/+9
|