Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | Move SymbolKind to ide_db | Lukas Wirth | 2021-01-20 | 3 | -4/+5 | |
| | | ||||||
* | | . | Aleksey Kladov | 2021-01-19 | 2 | -2/+2 | |
|/ | ||||||
* | Wrap remaining self/super/crate in Name{Ref} | Lukas Wirth | 2021-01-15 | 1 | -13/+9 | |
| | ||||||
* | Handle self/super/crate in PathSegment as NameRef | Lukas Wirth | 2021-01-15 | 5 | -44/+27 | |
| | ||||||
* | Use upstream TextSize API | Aleksey Kladov | 2021-01-13 | 2 | -15/+3 | |
| | ||||||
* | Merge #7239 | bors[bot] | 2021-01-10 | 1 | -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 applicable | Lukas Wirth | 2021-01-10 | 1 | -1/+1 | |
| | | ||||||
* | | Fix typo, parentheses is plural | Laurențiu Nicola | 2021-01-10 | 9 | -133/+133 | |
|/ | ||||||
* | Merge #6238 | bors[bot] | 2021-01-10 | 11 | -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 tags | Lukas Wirth | 2021-01-10 | 11 | -302/+345 | |
| | | ||||||
| | | ||||||
| \ | ||||||
*-. \ | Merge #7206 #7231 | bors[bot] | 2021-01-10 | 3 | -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 API | Aleksey Kladov | 2021-01-10 | 2 | -7/+8 | |
| |/ |/| | ||||||
| * | Use hir::GenericParam in ide_db::Definition instead of relisting all 3 | Lukas Wirth | 2021-01-10 | 1 | -3/+5 | |
|/ | ||||||
* | Replace state with function | Aleksey Kladov | 2021-01-10 | 1 | -46/+36 | |
| | ||||||
* | Refactor highlighting | Aleksey Kladov | 2021-01-09 | 2 | -1/+518 | |
| | ||||||
* | Simplify | Aleksey Kladov | 2021-01-09 | 1 | -81/+49 | |
| | ||||||
* | Better highlight for fixtures | Aleksey Kladov | 2021-01-09 | 2 | -2/+6 | |
| | ||||||
* | Simplify | Aleksey Kladov | 2021-01-09 | 1 | -51/+27 | |
| | ||||||
* | Better names | Aleksey Kladov | 2021-01-09 | 2 | -15/+16 | |
| | ||||||
* | Reduce duplication | Aleksey Kladov | 2021-01-09 | 1 | -7/+5 | |
| | ||||||
* | Shorten names | Aleksey Kladov | 2021-01-09 | 4 | -55/+38 | |
| | ||||||
* | Shorten frequent names | Aleksey Kladov | 2021-01-09 | 5 | -81/+81 | |
| | ||||||
* | Rename dummy -> none | Aleksey Kladov | 2021-01-09 | 3 | -15/+15 | |
| | ||||||
* | Simplify highlighting infra | Aleksey Kladov | 2021-01-08 | 8 | -88/+260 | |
| | | | | This also fixes the killer whale bug | |||||
* | Better fixture highlight | Aleksey Kladov | 2021-01-07 | 3 | -4/+119 | |
| | ||||||
* | Formatting. | Mara Bos | 2021-01-01 | 1 | -2/+11 | |
| | ||||||
* | Add support for Rust 2021. | Mara Bos | 2021-01-01 | 1 | -1/+1 | |
| | ||||||
* | Add ConstParams to the ide layer | Lukas Wirth | 2021-01-01 | 3 | -0/+9 | |
| | ||||||
* | Support labels in reference search | Lukas Wirth | 2020-12-24 | 11 | -0/+20 | |
| | ||||||
* | Make sure that HighlightModifier::ALL is synchronized with enum | Aleksey Kladov | 2020-12-19 | 6 | -36/+39 | |
| | ||||||
* | Clarify the meaning of no-op highlight tag | Aleksey Kladov | 2020-12-19 | 3 | -14/+13 | |
| | ||||||
* | Use more Rustic highlighting specifiers | Aleksey Kladov | 2020-12-19 | 6 | -35/+40 | |
| | | | | | *Method* works for OO languages, but in rust we can also have associated constants & types, so let's move this to a modifier. | |||||
* | Deduplicate highlight tags and symbol kinds | Aleksey Kladov | 2020-12-18 | 2 | -45/+37 | |
| | | | | | | | Curiously, LSP uses different enums for those, and unsurprising and annoyingly, there are things which exist in one but not in the other. Let's not repeat the mistake and unify the two things | |||||
* | Make macro def krate mandatory | Jonas Schievink | 2020-12-15 | 2 | -1/+7 | |
| | | | | Refactors builtin derive support to go through proper name resolution | |||||
* | Move to upstream `macro_rules!` model | Jonas Schievink | 2020-12-15 | 3 | -7/+7 | |
| | ||||||
* | Use METHOD semantic token type | Laurențiu Nicola | 2020-12-04 | 6 | -32/+34 | |
| | ||||||
* | Add attribute highlight modifier to all tokens inside attributes | Lukas Wirth | 2020-11-21 | 3 | -7/+7 | |
| | ||||||
* | format string highlighting: handle hex + debug type specifier | Roland Ruckerbauer | 2020-11-15 | 2 | -0/+4 | |
| | ||||||
* | Merge #6472 | bors[bot] | 2020-11-09 | 5 | -2/+90 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6472: Add `static` modifier for associated functions r=matklad a=p3achyjr Adds static semantic token modifier to associated functions, resolves #6194 ## Info - Associated functions are more-or-less equivalent to static methods in other languages. This PR checks, for each function, whether that function has a self_param, and whether it's enclosed in a trait/impl. ## Changes - Added method ```is_associated``` to code_model::Function. This basically gets the source from the ast, and checks whether the enclosing scope is an impl or trait. - Added `static` to HighlightModifiers - Added unit test ## Tests - Ran ```cargo test``` Co-authored-by: Anatol Liu <[email protected]> | |||||
| * | Add static semantic token modifier for associated functions with no &self | Anatol Liu | 2020-11-05 | 5 | -2/+90 | |
| | | ||||||
* | | . is an operator | Aleksey Kladov | 2020-11-09 | 4 | -27/+27 | |
| | | | | | | | | closes #6498 | |||||
* | | Simplify | Aleksey Kladov | 2020-11-06 | 1 | -1/+0 | |
| | | ||||||
* | | Kill RAW_ literals | Aleksey Kladov | 2020-11-06 | 2 | -4/+2 | |
|/ | | | | | Syntactically, they are indistinguishable from non-raw versions, so it doesn't make sense to separate then *at the syntax* level. | |||||
* | Merge #6379 | bors[bot] | 2020-10-27 | 2 | -0/+12 | |
|\ | | | | | | | | | | | | | | | 6379: Highlight never type as BuiltinType r=matklad a=Veykril Fixes #6374 Co-authored-by: Lukas Wirth <[email protected]> | |||||
| * | Highlight never type as BuiltinType | Lukas Wirth | 2020-10-26 | 2 | -0/+12 | |
| | | ||||||
* | | Fix test | GrayJack | 2020-10-26 | 1 | -158/+158 | |
| | | ||||||
* | | Add test to avoid regression | GrayJack | 2020-10-26 | 2 | -153/+165 | |
|/ | ||||||
* | Fix unary minus highlighting | Lukas Wirth | 2020-10-25 | 2 | -0/+6 | |
| | ||||||
* | Re-export base_db from ide_db | Igor Aleksanov | 2020-10-24 | 1 | -1/+1 | |
| | ||||||
* | Make call_info a part of ide_db | Igor Aleksanov | 2020-10-24 | 1 | -1/+1 | |
| |