aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/syntax_highlighting
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge #6251 #6310bors[bot]2020-10-233-0/+41
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6251: Semantic Highlight: Add Callable modifier for variables r=matklad a=GrayJack This PR added the `HighlightModifier::Callable` variant and assigned it to variables and parameters that are fn pointers, closures and implements FnOnce trait. This allows to colorize these variables/parameters when used in call expression. 6310: Rewrite algo::diff to support insertion and deletion r=matklad a=Veykril This in turn also makes `algo::diff` generate finer diffs(maybe even minimal diffs?) as insertions and deletions aren't always represented as as replacements of parent nodes now. Required for #6287 to go on. Co-authored-by: GrayJack <[email protected]> Co-authored-by: Lukas Wirth <[email protected]>
| * Add tests for callable modifierGrayJack2020-10-212-0/+38
| |
| * Add HighlightModifier::Callable and add it for localsGrayJack2020-10-161-0/+3
| |
* | Extract call_info and completion into separate cratesIgor Aleksanov2020-10-181-4/+2
|/
* Default::default the highlightersLukas Wirth2020-10-142-15/+4
|
* Factor macro_rules! highlighting outLukas Wirth2020-10-141-0/+136
|
* Factor format string highlighting outLukas Wirth2020-10-141-0/+82
|
* Merge #6198bors[bot]2020-10-123-1/+9
|\ | | | | | | | | | | | | | | | | | | 6198: Skip macro matcher fragment name semantic highlighting r=matklad a=Veykril Implements a small state-machine for macro_rules! highlighting to separate out the matcher part of its rules. This skips semantically highlighting names of metavariables in the matcher and expander. This might even allow for more fun macro highlighting things in the future. Fixes #4380. Co-authored-by: Lukas Wirth <[email protected]>
| * Skip macro matcher fragment name semantic highlightingLukas Wirth2020-10-103-1/+9
| |
* | Fix `mut self` not emitting mutable binding on `self` useLukas Wirth2020-10-111-1/+1
|/
* rename mock_analysis -> fixtureAleksey Kladov2020-10-021-5/+5
|
* Get rid of MockAnalysisAleksey Kladov2020-10-021-3/+3
|
* Cleanup unintended unresolved reference in syntax higlighting testPaul Daniel Faria2020-09-242-6/+6
|
* Fix handling of consuming self, refactor shared logic into a single functionPaul Daniel Faria2020-09-061-1/+1
|
* Add consuming modifier to lvalues that are passed by value and not CopyPaul Daniel Faria2020-09-062-12/+14
|
* :arrow_up: expect-testAleksey Kladov2020-08-288-7/+611
|
* MinorAleksey Kladov2020-08-271-1/+2
|
* Switch to expect_test from crates.ioAleksey Kladov2020-08-211-1/+1
|
* Add new method to Semantics, method_receiver_kind, which returns the kind of ↵Paul Daniel Faria2020-08-161-0/+30
| | | | | | | self The options are Shared, Mutable, Consuming, and Copied. Use this to add proper highlighting to methods based on usage.
* Mark mutating functions with `mutable` modifier, and owning functions with ↵Paul Daniel Faria2020-08-161-0/+9
| | | | `consuming`.
* Add new HighlightModifier variant, ConsumingPaul Daniel Faria2020-08-161-0/+3
|
* Rename ra_ide -> ideAleksey Kladov2020-08-134-0/+932