aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/syntax_highlighting.rs
Commit message (Collapse)AuthorAgeFilesLines
* Nest all the or-patterns!Lukas Wirth2021-06-171-2/+2
|
* clippy::redudant_borrowMaan20032021-06-131-2/+2
|
* Attempt to track attr macros during highlightingJonas Schievink2021-06-071-0/+30
|
* Document semantic token tagsLukas Wirth2021-05-261-4/+74
|
* Document semantic token modifiersLukas Wirth2021-05-261-0/+24
|
* Add highlighting of items from other cratesAramis Razzaghipour2021-05-241-0/+3
|
* Additional syntax highlighting screenshot in manualAyomide Bamidele2021-03-311-0/+1
|
* Gifs and screenshots for features in manual (syntax highlighting and typing)Ayomide Bamidele2021-03-311-0/+2
|
* Unleash macro 2.0 in hightlight and moreEdwin Cheng2021-03-271-14/+14
|
* Track source file IDs in source mapping of AttrsLukas Wirth2021-03-181-5/+11
|
* Move doc-comment highlight injection from AST to HIRLukas Wirth2021-03-161-1/+1
|
* Upgrade rowanAleksey Kladov2021-03-161-8/+11
| | | | Notably, new rowan comes with support for mutable syntax trees.
* Increase Highlights highlight range to covering elementLukas Wirth2021-02-041-1/+1
|
* Move SymbolKind to ide_dbLukas Wirth2021-01-201-2/+2
|
* Replace state with functionAleksey Kladov2021-01-101-22/+18
|
* Refactor highlightingAleksey Kladov2021-01-091-527/+33
|
* SimplifyAleksey Kladov2021-01-091-5/+3
|
* SimplifyAleksey Kladov2021-01-091-1/+1
|
* Better namesAleksey Kladov2021-01-091-8/+8
|
* Shorten namesAleksey Kladov2021-01-091-5/+5
|
* Reorder modulesAleksey Kladov2021-01-091-2/+4
|
* Shorten frequent namesAleksey Kladov2021-01-091-129/+110
|
* Simplify highlighting infraAleksey Kladov2021-01-081-186/+8
| | | | This also fixes the killer whale bug
* Add ConstParams to the ide layerLukas Wirth2021-01-011-0/+1
|
* Support labels in reference searchLukas Wirth2020-12-241-4/+15
|
* Align code_model name with ungrammarAleksey Kladov2020-12-201-1/+1
|
* Use more Rustic highlighting specifiersAleksey Kladov2020-12-191-10/+21
| | | | | *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 kindsAleksey Kladov2020-12-181-47/+54
| | | | | | | 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
* Lifetime reference searchLukas Wirth2020-12-161-0/+1
|
* Move to upstream `macro_rules!` modelJonas Schievink2020-12-151-23/+29
|
* Use METHOD semantic token typeLaurențiu Nicola2020-12-041-5/+10
|
* Add attribute highlight modifier to all tokens inside attributesLukas Wirth2020-11-211-3/+16
|
* Merge #6472bors[bot]2020-11-091-1/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 &selfAnatol Liu2020-11-091-2/+2
| | | | | | | | | | | | refactor logic into code_model.rs address comments
| * Add static semantic token modifier for associated functions with no &selfAnatol Liu2020-11-081-1/+1
| | | | | | | | | | | | refactor logic into code_model.rs address comments
| * Add static semantic token modifier for associated functions with no &selfAnatol Liu2020-11-051-14/+2
| | | | | | | | refactor logic into code_model.rs
| * Add static semantic token modifier for associated functions with no &selfAnatol Liu2020-11-051-0/+15
| |
* | . is an operatorAleksey Kladov2020-11-091-1/+3
| | | | | | | | closes #6498
* | Kill RAW_ literalsAleksey Kladov2020-11-061-9/+7
|/ | | | | Syntactically, they are indistinguishable from non-raw versions, so it doesn't make sense to separate then *at the syntax* level.
* Remove more unreachable pubsAleksey Kladov2020-11-021-4/+5
|
* Highlight never type as BuiltinTypeLukas Wirth2020-10-261-0/+3
|
* Fix unary minus highlightingLukas Wirth2020-10-251-1/+8
|
* Add Callable modifier for variables that implements FnonceGrayJack2020-10-161-1/+1
|
* Add HighlightModifier::Callable and add it for localsGrayJack2020-10-161-0/+3
|
* More idiomatic classification APIAleksey Kladov2020-10-151-3/+3
|
* More clarificationsAleksey Kladov2020-10-151-2/+2
|
* Unconfuse expression and pattern field init shorthandsAleksey Kladov2020-10-151-1/+1
|
* Default::default the highlightersLukas Wirth2020-10-141-3/+3
|
* Factor macro_rules! highlighting outLukas Wirth2020-10-141-117/+18
|
* Factor format string highlighting outLukas Wirth2020-10-141-75/+8
|