Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Handle self/super/crate in PathSegment as NameRef | Lukas Wirth | 2021-01-15 | 1 | -1/+1 |
| | |||||
* | Fix typo, parentheses is plural | Laurențiu Nicola | 2021-01-10 | 1 | -9/+9 |
| | |||||
* | Split punctuation semantic highlighting up into more tags | Lukas Wirth | 2021-01-10 | 1 | -26/+26 |
| | |||||
* | Rename dummy -> none | Aleksey Kladov | 2021-01-09 | 1 | -10/+10 |
| | |||||
* | Simplify highlighting infra | Aleksey Kladov | 2021-01-08 | 1 | -13/+18 |
| | | | | This also fixes the killer whale bug | ||||
* | Support labels in reference search | Lukas Wirth | 2020-12-24 | 1 | -0/+1 |
| | |||||
* | Make sure that HighlightModifier::ALL is synchronized with enum | Aleksey Kladov | 2020-12-19 | 1 | -3/+3 |
| | |||||
* | Clarify the meaning of no-op highlight tag | Aleksey Kladov | 2020-12-19 | 1 | -9/+9 |
| | |||||
* | Use more Rustic highlighting specifiers | Aleksey Kladov | 2020-12-19 | 1 | -2/+2 |
| | | | | | *Method* works for OO languages, but in rust we can also have associated constants & types, so let's move this to a modifier. | ||||
* | Move to upstream `macro_rules!` model | Jonas Schievink | 2020-12-15 | 1 | -1/+1 |
| | |||||
* | Use METHOD semantic token type | Laurențiu Nicola | 2020-12-04 | 1 | -2/+2 |
| | |||||
* | Add attribute highlight modifier to all tokens inside attributes | Lukas Wirth | 2020-11-21 | 1 | -1/+1 |
| | |||||
* | Merge #6472 | bors[bot] | 2020-11-09 | 1 | -1/+1 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | 1 | -1/+1 |
| | | |||||
* | | . is an operator | Aleksey Kladov | 2020-11-09 | 1 | -3/+3 |
|/ | | | | closes #6498 | ||||
* | :arrow_up: expect-test | Aleksey Kladov | 2020-08-28 | 1 | -0/+102 |