Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | Merge #6251 #6310 | bors[bot] | 2020-10-23 | 3 | -0/+41 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6251: Semantic Highlight: Add Callable modifier for variables r=matklad a=GrayJack This PR added the `HighlightModifier::Callable` variant and assigned it to variables and parameters that are fn pointers, closures and implements FnOnce trait. This allows to colorize these variables/parameters when used in call expression. 6310: Rewrite algo::diff to support insertion and deletion r=matklad a=Veykril This in turn also makes `algo::diff` generate finer diffs(maybe even minimal diffs?) as insertions and deletions aren't always represented as as replacements of parent nodes now. Required for #6287 to go on. Co-authored-by: GrayJack <[email protected]> Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Add tests for callable modifier | GrayJack | 2020-10-21 | 2 | -0/+38 |
| | | |||||
| * | Add HighlightModifier::Callable and add it for locals | GrayJack | 2020-10-16 | 1 | -0/+3 |
| | | |||||
* | | Extract call_info and completion into separate crates | Igor Aleksanov | 2020-10-18 | 1 | -4/+2 |
|/ | |||||
* | Default::default the highlighters | Lukas Wirth | 2020-10-14 | 2 | -15/+4 |
| | |||||
* | Factor macro_rules! highlighting out | Lukas Wirth | 2020-10-14 | 1 | -0/+136 |
| | |||||
* | Factor format string highlighting out | Lukas Wirth | 2020-10-14 | 1 | -0/+82 |
| | |||||
* | Merge #6198 | bors[bot] | 2020-10-12 | 3 | -1/+9 |
|\ | | | | | | | | | | | | | | | | | | | 6198: Skip macro matcher fragment name semantic highlighting r=matklad a=Veykril Implements a small state-machine for macro_rules! highlighting to separate out the matcher part of its rules. This skips semantically highlighting names of metavariables in the matcher and expander. This might even allow for more fun macro highlighting things in the future. Fixes #4380. Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Skip macro matcher fragment name semantic highlighting | Lukas Wirth | 2020-10-10 | 3 | -1/+9 |
| | | |||||
* | | Fix `mut self` not emitting mutable binding on `self` use | Lukas Wirth | 2020-10-11 | 1 | -1/+1 |
|/ | |||||
* | rename mock_analysis -> fixture | Aleksey Kladov | 2020-10-02 | 1 | -5/+5 |
| | |||||
* | Get rid of MockAnalysis | Aleksey Kladov | 2020-10-02 | 1 | -3/+3 |
| | |||||
* | Cleanup unintended unresolved reference in syntax higlighting test | Paul Daniel Faria | 2020-09-24 | 2 | -6/+6 |
| | |||||
* | Fix handling of consuming self, refactor shared logic into a single function | Paul Daniel Faria | 2020-09-06 | 1 | -1/+1 |
| | |||||
* | Add consuming modifier to lvalues that are passed by value and not Copy | Paul Daniel Faria | 2020-09-06 | 2 | -12/+14 |
| | |||||
* | :arrow_up: expect-test | Aleksey Kladov | 2020-08-28 | 8 | -7/+611 |
| | |||||
* | Minor | Aleksey Kladov | 2020-08-27 | 1 | -1/+2 |
| | |||||
* | Switch to expect_test from crates.io | Aleksey Kladov | 2020-08-21 | 1 | -1/+1 |
| | |||||
* | Add new method to Semantics, method_receiver_kind, which returns the kind of ↵ | Paul Daniel Faria | 2020-08-16 | 1 | -0/+30 |
| | | | | | | | self The options are Shared, Mutable, Consuming, and Copied. Use this to add proper highlighting to methods based on usage. | ||||
* | Mark mutating functions with `mutable` modifier, and owning functions with ↵ | Paul Daniel Faria | 2020-08-16 | 1 | -0/+9 |
| | | | | `consuming`. | ||||
* | Add new HighlightModifier variant, Consuming | Paul Daniel Faria | 2020-08-16 | 1 | -0/+3 |
| | |||||
* | Rename ra_ide -> ide | Aleksey Kladov | 2020-08-13 | 4 | -0/+932 |