aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/syntax_highlighting.rs
Commit message (Collapse)AuthorAgeFilesLines
* Merge #3826bors[bot]2020-04-081-5/+54
|\ | | | | | | | | | | | | | | | | | | | | | | | | 3826: Flatten nested highlight ranges during DFS traversal r=matklad a=ltentrup Implements the flattening of nested highlights from #3447. There is a caveat: I needed to add `Clone` to `HighlightedRange` to split highlight ranges ~and the nesting does not appear in the syntax highlighting test (it does appear in the accidental-quadratic test but there it is not checked against a ground-truth)~. I have added a test case for the example mentioned in #3447. Co-authored-by: Leander Tentrup <[email protected]>
| * Simplify HTML highlighter and add test case for highlight_injection logicLeander Tentrup2020-04-061-1/+7
| |
| * Flatten nested highlight ranges during DFS traversalLeander Tentrup2020-04-031-6/+49
| |
* | Make control token modifier less ambiguousAleksey Kladov2020-04-061-1/+1
|/ | | | | | | | | In textmate, keyword.control is used for all kinds of things; in fact, the default scope mapping for keyword is keyword.control! So let's add a less ambiguous controlFlow modifier See Microsoft/vscode#94367
* Fix importsAleksey Kladov2020-03-031-6/+2
|
* Rename NameDefinition -> DefinitionAleksey Kladov2020-03-031-12/+12
|
* Highlight assist testsAleksey Kladov2020-03-031-1/+1
|
* Remove stray dbgAleksey Kladov2020-03-031-2/+2
|
* More principled approach for gotodef for field shorhandAleksey Kladov2020-03-021-13/+17
| | | | | Callers can now decide for themselves if they should prefer field or local definition. By default, it's the local.
* Remove debug printAleksey Kladov2020-02-291-1/+0
|
* Correctly flag 'lifetime definitions as definitionsAleksey Kladov2020-02-281-2/+7
|
* Classify name takes const patterns into accountAleksey Kladov2020-02-281-7/+9
|
* Fix union classificationAleksey Kladov2020-02-281-1/+1
|
* Cleanup highlighting tagsAleksey Kladov2020-02-281-13/+17
|
* add more tagsAleksey Kladov2020-02-281-7/+10
|
* Refactor string literalsAleksey Kladov2020-02-271-2/+4
|
* Basic injectionsAleksey Kladov2020-02-271-4/+55
|
* Move tests to a new fileAleksey Kladov2020-02-271-134/+2
|
* More cleanupAleksey Kladov2020-02-271-114/+108
|
* Split loop into orthogonal phasesAleksey Kladov2020-02-271-44/+43
|
* CleanupAleksey Kladov2020-02-271-37/+34
|
* Minor cleanupAleksey Kladov2020-02-271-15/+18
|
* Renam moduleAleksey Kladov2020-02-271-2/+2
|
* Move html highlightig to a separate moduleAleksey Kladov2020-02-271-97/+3
|
* Fix html testsAleksey Kladov2020-02-271-6/+6
|
* Better highlightign APIAleksey Kladov2020-02-271-47/+60
|
* More type safety for highlightingAleksey Kladov2020-02-261-66/+41
|
* Refactor primary IDE APIAleksey Kladov2020-02-261-48/+39
| | | | | | | | | | This introduces the new type -- Semantics. Semantics maps SyntaxNodes to various semantic info, such as type, name resolution or macro expansions. To do so, Semantics maintains a HashMap which maps every node it saw to the file from which the node originated. This is enough to get all the necessary hir bits just from syntax.
* Rename back to highlight and check event's again highlight rangekjeremy2020-02-251-35/+51
|
* Semantic RangesJeremy Kolb2020-02-251-3/+46
|
* Teach the server about Semantic Tokens proposed LSPkjeremy2020-02-251-26/+26
|
* Merge NameDefinition and NameKindAleksey Kladov2020-02-191-22/+22
|
* Cleanup importsAleksey Kladov2020-02-181-22/+18
|
* Minor simplificationAleksey Kladov2020-02-181-6/+3
|
* Add module colors to cssAleksey Kladov2020-02-161-0/+1
|
* RenameAleksey Kladov2020-02-071-10/+10
|
* Remove irrelevant distinctionAleksey Kladov2020-02-071-3/+0
|
* cleanup importsAleksey Kladov2020-02-061-1/+1
|
* Implement Syntax Highlight inside MacroEdwin Cheng2020-01-201-105/+184
|
* TyposAleksey Kladov2020-01-151-1/+1
|
* Only new-style classificationAleksey Kladov2020-01-151-3/+3
|
* Add a testAleksey Kladov2020-01-151-3/+20
|
* Make syntax highlighting linearAleksey Kladov2020-01-151-5/+7
|
* Introduce SourceBinderAleksey Kladov2020-01-151-1/+1
|
* Drop support for legacy colorizationAleksey Kladov2019-12-311-10/+17
|
* Clippy lintskjeremy2019-12-201-28/+26
|
* Fix highlighting for field init shorthandAleksey Kladov2019-12-201-4/+3
|
* Improve highlighting testAleksey Kladov2019-12-201-1/+3
|
* Fix highlighting token namesAleksey Kladov2019-12-171-1/+1
|
* use a module instead of prefixed consts.Omer Ben-Amram2019-12-151-66/+64
|