Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Sort HlMod variants and ALL const | Lukas Wirth | 2021-04-23 | 5 | -32/+32 |
| | |||||
* | 8279: Fix the not operator use and test case fix. | Chetan Khilosiya | 2021-04-08 | 2 | -2/+2 |
| | |||||
* | Merge #8245 | bors[bot] | 2021-04-05 | 1 | -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 mapping | Lukas Wirth | 2021-03-30 | 1 | -1/+9 |
| | | |||||
* | | Revert "8024: Added test case for highlighting trait items." | Chetan Khilosiya | 2021-03-30 | 1 | -67/+0 |
| | | | | | | | | This reverts commit d7dcd41801b319f64f3ca2ed22735ab70092e491. | ||||
* | | 8024: Added test case for highlighting trait items. | Chetan Khilosiya | 2021-03-30 | 1 | -0/+67 |
| | | |||||
* | | 8024: Updated the implementation for trait modifier. | Chetan Khilosiya | 2021-03-30 | 4 | -10/+10 |
|/ | | | | Fixed the test cases. | ||||
* | Unleash macro 2.0 in hightlight and more | Edwin Cheng | 2021-03-27 | 1 | -1/+11 |
| | |||||
* | Use a highlight modifier for intra doc links | Lukas Wirth | 2021-03-18 | 9 | -11/+11 |
| | |||||
* | Semantic highlight intradoclinks in documentation | Lukas Wirth | 2021-03-17 | 9 | -0/+14 |
| | |||||
* | Inject highlight into block doc comments | Lukas Wirth | 2021-03-17 | 1 | -2/+18 |
| | |||||
* | Properly handle doc attributes in doc-comment highlight injection | Lukas Wirth | 2021-03-16 | 1 | -1/+17 |
| | |||||
* | Classify function calls as functions when shadowed by types | Lukas Wirth | 2021-01-28 | 1 | -0/+4 |
| | |||||
* | Handle self/super/crate in PathSegment as NameRef | Lukas Wirth | 2021-01-15 | 4 | -16/+16 |
| | |||||
* | Fix typo, parentheses is plural | Laurențiu Nicola | 2021-01-10 | 8 | -132/+132 |
| | |||||
* | Split punctuation semantic highlighting up into more tags | Lukas Wirth | 2021-01-10 | 9 | -297/+297 |
| | |||||
* | Better highlight for fixtures | Aleksey Kladov | 2021-01-09 | 1 | -2/+2 |
| | |||||
* | Rename dummy -> none | Aleksey Kladov | 2021-01-09 | 1 | -10/+10 |
| | |||||
* | Simplify highlighting infra | Aleksey Kladov | 2021-01-08 | 1 | -13/+18 |
| | | | | This also fixes the killer whale bug | ||||
* | Better fixture highlight | Aleksey Kladov | 2021-01-07 | 1 | -0/+48 |
| | |||||
* | Add ConstParams to the ide layer | Lukas Wirth | 2021-01-01 | 1 | -0/+4 |
| | |||||
* | Support labels in reference search | Lukas Wirth | 2020-12-24 | 8 | -0/+13 |
| | |||||
* | Make sure that HighlightModifier::ALL is synchronized with enum | Aleksey Kladov | 2020-12-19 | 5 | -33/+33 |
| | |||||
* | Clarify the meaning of no-op highlight tag | Aleksey Kladov | 2020-12-19 | 1 | -9/+9 |
| | |||||
* | Use more Rustic highlighting specifiers | Aleksey Kladov | 2020-12-19 | 5 | -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 mandatory | Jonas Schievink | 2020-12-15 | 1 | -1/+4 |
| | | | | Refactors builtin derive support to go through proper name resolution | ||||
* | Move to upstream `macro_rules!` model | Jonas Schievink | 2020-12-15 | 3 | -7/+7 |
| | |||||
* | Use METHOD semantic token type | Laurențiu Nicola | 2020-12-04 | 5 | -32/+32 |
| | |||||
* | Add attribute highlight modifier to all tokens inside attributes | Lukas Wirth | 2020-11-21 | 3 | -7/+7 |
| | |||||
* | format string highlighting: handle hex + debug type specifier | Roland Ruckerbauer | 2020-11-15 | 1 | -0/+2 |
| | |||||
* | Merge #6472 | bors[bot] | 2020-11-09 | 3 | -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 &self | Anatol Liu | 2020-11-05 | 3 | -2/+58 |
| | | |||||
* | | . is an operator | Aleksey Kladov | 2020-11-09 | 4 | -27/+27 |
|/ | | | | closes #6498 | ||||
* | Merge #6379 | bors[bot] | 2020-10-27 | 1 | -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 BuiltinType | Lukas Wirth | 2020-10-26 | 1 | -0/+6 |
| | | |||||
* | | Fix test | GrayJack | 2020-10-26 | 1 | -158/+158 |
| | | |||||
* | | Add test to avoid regression | GrayJack | 2020-10-26 | 1 | -153/+159 |
|/ | |||||
* | Fix unary minus highlighting | Lukas Wirth | 2020-10-25 | 1 | -0/+3 |
| | |||||
* | Add tests for callable modifier | GrayJack | 2020-10-21 | 1 | -0/+19 |
| | |||||
* | Merge #6198 | bors[bot] | 2020-10-12 | 2 | -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 highlighting | Lukas Wirth | 2020-10-10 | 2 | -1/+5 |
| | | |||||
* | | Fix `mut self` not emitting mutable binding on `self` use | Lukas Wirth | 2020-10-11 | 1 | -1/+1 |
|/ | |||||
* | Cleanup unintended unresolved reference in syntax higlighting test | Paul Daniel Faria | 2020-09-24 | 1 | -3/+3 |
| | |||||
* | Fix handling of consuming self, refactor shared logic into a single function | Paul Daniel Faria | 2020-09-06 | 1 | -1/+1 |
| | |||||
* | Add consuming modifier to lvalues that are passed by value and not Copy | Paul Daniel Faria | 2020-09-06 | 1 | -6/+7 |
| | |||||
* | :arrow_up: expect-test | Aleksey Kladov | 2020-08-28 | 7 | -0/+604 |