Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |