aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/snapshots/highlight_doctest.html
Commit message (Collapse)AuthorAgeFilesLines
* Merge #4903bors[bot]2020-06-181-38/+38
|\ | | | | | | | | | | | | | | | | | | | | | | | | 4903: Add highlighting support for doc comments r=matklad a=Nashenas88 The language server protocol includes a semantic modifier for documentation. This change exports that modifier for doc comments so users can choose to highlight them differently compared to regular comments. Example: <img width="375" alt="Screen Shot 2020-06-16 at 10 34 14 AM" src="https://user-images.githubusercontent.com/1673130/84788271-f6599580-afbc-11ea-96e5-7a0215da620b.png"> CC @woody77 Co-authored-by: Paul Daniel Faria <[email protected]>
| * Remove logic to mark all doctest code asPaul Daniel Faria2020-06-181-13/+13
| |
| * Ensure all existing doctest code highlights have documentation modifierPaul Daniel Faria2020-06-171-13/+13
| |
| * Add highlighting support for doc commentsPaul Daniel Faria2020-06-171-38/+38
| |
* | Syntax highlighting for escape sequences in stringsLeander Tentrup2020-06-171-0/+1
|/
* Inspect markdown code fences to determine whether to apply syntax highlightingLeander Tentrup2020-06-161-1/+5
|
* Syntactic highlighting of NAME_REF for injectionsLeander Tentrup2020-06-151-6/+17
| | | | | | This commit adds a function that tries to determine the syntax highlighting class of NAME_REFs based on the usage. It is used for highlighting injections (such as highlighting of doctests) as the semantic logic will most of the time result in unresolved references. It also adds a color to unresolved references in HTML encoding.
* Better unsafe highlihgting testsAleksey Kladov2020-06-081-1/+2
|
* Implement syntax highlighting for doctestsLeander Tentrup2020-06-081-0/+70