aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/syntax_highlighting/test_data
Commit message (Collapse)AuthorAgeFilesLines
* Fix block comment intra doc link injection rangesLukas Tobias Wirth2021-05-041-0/+2
|
* Added mutable semantic token modifier for &mut self methodsBastian Kersting2021-04-261-2/+2
|
* Sort HlMod variants and ALL constLukas Wirth2021-04-235-32/+32
|
* 8279: Fix the not operator use and test case fix.Chetan Khilosiya2021-04-082-2/+2
|
* Merge #8245bors[bot]2021-04-051-1/+9
|\ | | | | | | | | | | | | | | | | | | 8245: Properly resolve intra doc links in hover and goto_definition r=matklad a=Veykril Unfortunately involves a bit of weird workarounds due to pulldown_cmark's incorrect lifetimes on `BrokenLinkCallback`... I should probably open an issue there asking for the fixes to be pushed to a release since they already exist in the repo for quite some time it seems. Fixes #8258, Fixes #8238 Co-authored-by: Lukas Wirth <[email protected]>
| * Implement basic Documentation source to syntax range mappingLukas Wirth2021-03-301-1/+9
| |
* | Revert "8024: Added test case for highlighting trait items."Chetan Khilosiya2021-03-301-67/+0
| | | | | | | | This reverts commit d7dcd41801b319f64f3ca2ed22735ab70092e491.
* | 8024: Added test case for highlighting trait items.Chetan Khilosiya2021-03-301-0/+67
| |
* | 8024: Updated the implementation for trait modifier.Chetan Khilosiya2021-03-304-10/+10
|/ | | | Fixed the test cases.
* Unleash macro 2.0 in hightlight and moreEdwin Cheng2021-03-271-1/+11
|
* Use a highlight modifier for intra doc linksLukas Wirth2021-03-189-11/+11
|
* Semantic highlight intradoclinks in documentationLukas Wirth2021-03-179-0/+14
|
* Inject highlight into block doc commentsLukas Wirth2021-03-171-2/+18
|
* Properly handle doc attributes in doc-comment highlight injectionLukas Wirth2021-03-161-1/+17
|
* Classify function calls as functions when shadowed by typesLukas Wirth2021-01-281-0/+4
|
* Handle self/super/crate in PathSegment as NameRefLukas Wirth2021-01-154-16/+16
|
* Fix typo, parentheses is pluralLaurențiu Nicola2021-01-108-132/+132
|
* Split punctuation semantic highlighting up into more tagsLukas Wirth2021-01-109-297/+297
|
* Better highlight for fixturesAleksey Kladov2021-01-091-2/+2
|
* Rename dummy -> noneAleksey Kladov2021-01-091-10/+10
|
* Simplify highlighting infraAleksey Kladov2021-01-081-13/+18
| | | | This also fixes the killer whale bug
* Better fixture highlightAleksey Kladov2021-01-071-0/+48
|
* Add ConstParams to the ide layerLukas Wirth2021-01-011-0/+4
|
* Support labels in reference searchLukas Wirth2020-12-248-0/+13
|
* Make sure that HighlightModifier::ALL is synchronized with enumAleksey Kladov2020-12-195-33/+33
|
* Clarify the meaning of no-op highlight tagAleksey Kladov2020-12-191-9/+9
|
* Use more Rustic highlighting specifiersAleksey Kladov2020-12-195-32/+32
| | | | | *Method* works for OO languages, but in rust we can also have associated constants & types, so let's move this to a modifier.
* Make macro def krate mandatoryJonas Schievink2020-12-151-1/+4
| | | | Refactors builtin derive support to go through proper name resolution
* Move to upstream `macro_rules!` modelJonas Schievink2020-12-153-7/+7
|
* Use METHOD semantic token typeLaurențiu Nicola2020-12-045-32/+32
|
* Add attribute highlight modifier to all tokens inside attributesLukas Wirth2020-11-213-7/+7
|
* format string highlighting: handle hex + debug type specifierRoland Ruckerbauer2020-11-151-0/+2
|
* Merge #6472bors[bot]2020-11-093-2/+58
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-053-2/+58
| |
* | . is an operatorAleksey Kladov2020-11-094-27/+27
|/ | | | closes #6498
* Merge #6379bors[bot]2020-10-271-0/+6
|\ | | | | | | | | | | | | | | 6379: Highlight never type as BuiltinType r=matklad a=Veykril Fixes #6374 Co-authored-by: Lukas Wirth <[email protected]>
| * Highlight never type as BuiltinTypeLukas Wirth2020-10-261-0/+6
| |
* | Fix testGrayJack2020-10-261-158/+158
| |
* | Add test to avoid regressionGrayJack2020-10-261-153/+159
|/
* Fix unary minus highlightingLukas Wirth2020-10-251-0/+3
|
* Add tests for callable modifierGrayJack2020-10-211-0/+19
|
* Merge #6198bors[bot]2020-10-122-1/+5
|\ | | | | | | | | | | | | | | | | | | 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-102-1/+5
| |
* | Fix `mut self` not emitting mutable binding on `self` useLukas Wirth2020-10-111-1/+1
|/
* Cleanup unintended unresolved reference in syntax higlighting testPaul Daniel Faria2020-09-241-3/+3
|
* 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-061-6/+7
|
* :arrow_up: expect-testAleksey Kladov2020-08-287-0/+604