aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/syntax_highlighting/format.rs
Commit message (Collapse)AuthorAgeFilesLines
* Merge #7353bors[bot]2021-01-221-1/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7353: Add LifetimeParam and ConstParam to CompletionItemKind r=matklad a=Veykril Adds `LifetimeParam` and `ConstParam` to `CompletionItemKind` and maps them both to `TypeParam` in the protocol conversion as there are no equivalents, so nothing really changes there. `ConstParam` could be mapped to `Const` I guess but I'm split on whether that would be better? Additions were solely inspired by (the single) test output for const params. Also sorts the variants of `CompletionItemKind` and its to_proto match. Co-authored-by: Lukas Wirth <[email protected]>
| * Move SymbolKind to ide_dbLukas Wirth2021-01-201-1/+2
| |
* | .Aleksey Kladov2021-01-191-1/+1
|/
* Replace state with functionAleksey Kladov2021-01-101-46/+36
|
* Shorten namesAleksey Kladov2021-01-091-2/+2
|
* Shorten frequent namesAleksey Kladov2021-01-091-5/+5
|
* Simplify highlighting infraAleksey Kladov2021-01-081-7/+5
| | | | This also fixes the killer whale bug
* Deduplicate highlight tags and symbol kindsAleksey Kladov2020-12-181-2/+4
| | | | | | | 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
* Kill RAW_ literalsAleksey Kladov2020-11-061-3/+1
| | | | | Syntactically, they are indistinguishable from non-raw versions, so it doesn't make sense to separate then *at the syntax* level.
* Default::default the highlightersLukas Wirth2020-10-141-4/+0
|
* Factor format string highlighting outLukas Wirth2020-10-141-0/+82