aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/test_data
Commit message (Collapse)AuthorAgeFilesLines
* Merge #5692bors[bot]2020-08-101-0/+40
|\ | | | | | | | | | | | | | | | | | | 5692: Add support for extern crate r=jonas-schievink a=Nashenas88 This adds syntax highlighting, hover and goto def functionality for extern crate. Fixes #5690 Co-authored-by: Paul Daniel Faria <[email protected]>
| * Add support for extern cratePaul Daniel Faria2020-08-081-0/+40
| | | | | | | | | | This adds syntax highlighting, hover and goto def functionality for extern crate
* | Merge #5684bors[bot]2020-08-081-0/+11
|\ \ | |/ |/| | | | | | | | | | | | | | | 5684: Semantic highlighting for unsafe union field access r=jonas-schievink a=Nashenas88 This change adds support for unions in inference and lowering, then extends on that to add the unsafe semantic modifier on field access only. The `is_possibly_unsafe` function in `syntax_highlighting.rs` could be extended to support fns and static muts so that their definitions are not highlighted as unsafe, but only their usage. Also, each commit of this PR updates the tests. By reviewing the files by commit, it's easy to see how the changes in the code affected the tests. Co-authored-by: Paul Daniel Faria <[email protected]>
| * Apply unsafe semantic highlighting to union field accessPaul Daniel Faria2020-08-081-3/+3
| |
| * Add support for unions in inference and loweringPaul Daniel Faria2020-08-081-4/+4
| |
| * Add test for unsafe union field access highlightingPaul Daniel Faria2020-08-071-0/+11
| |
* | Mark static mutable names as unsafePaul Daniel Faria2020-08-072-4/+4
| |
* | Add test for accessing static mutPaul Daniel Faria2020-08-071-0/+7
|/
* When resolving a rename, fallback to the name higher in the use tree if the ↵Paul Daniel Faria2020-08-041-1/+1
| | | | path segment is `self`
* Add test showing unresolved module renamePaul Daniel Faria2020-08-041-1/+4
|
* Replace rand with oorandomAleksey Kladov2020-07-291-6/+6
|
* On second thought, we want to preserve the textMate here where all ↵GrayJack2020-07-212-2/+2
| | | | punctuation that are from a Attr be highlited as Attribute
* `#` as AttributeGrayJack2020-07-212-2/+2
| | | | - Issue #5453
* Assingment semantic highlightGrayJack2020-07-205-40/+40
|
* Handle semantic highlight when STAR is part of the `*{const, mut}`GrayJack2020-07-205-31/+31
|
* Add new `Punctuation` highlight tagLeander Tentrup2020-07-156-193/+193
|
* Highlight punctuation as `HighlightTag::Operator`Leander Tentrup2020-07-156-197/+197
|
* Semantic Highlighting: Emit mutable modifier for 'self' when applicableLukas Wirth2020-07-131-0/+10
|
* Use dedicated semantic highlight tag for parametersAleksey Kladov2020-07-116-15/+21
| | | | closes #5106
* Move test data to test_data directoryAleksey Kladov2020-07-016-0/+461