aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/syntax_highlighting/test_data
Commit message (Collapse)AuthorAgeFilesLines
* 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