aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/test_data/highlight_unsafe.html
Commit message (Collapse)AuthorAgeFilesLines
* 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-071-2/+2
| |
* | Add test for accessing static mutPaul Daniel Faria2020-08-071-0/+7
|/
* Assingment semantic highlightGrayJack2020-07-201-3/+3
|
* Handle semantic highlight when STAR is part of the `*{const, mut}`GrayJack2020-07-201-3/+3
|
* Add new `Punctuation` highlight tagLeander Tentrup2020-07-151-14/+14
|
* Highlight punctuation as `HighlightTag::Operator`Leander Tentrup2020-07-151-14/+14
|
* Use dedicated semantic highlight tag for parametersAleksey Kladov2020-07-111-2/+3
| | | | closes #5106
* Move test data to test_data directoryAleksey Kladov2020-07-011-0/+53