aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/snapshots/highlight_unsafe.html
diff options
context:
space:
mode:
authorLeander Tentrup <[email protected]>2020-06-14 13:43:43 +0100
committerLeander Tentrup <[email protected]>2020-06-15 21:13:53 +0100
commitc4b3db0c2f307d1d782af88ded260e4c6593cae0 (patch)
treedd32c19bf36913db87d0dde84f70e6fd1b4c2e5a /crates/ra_ide/src/snapshots/highlight_unsafe.html
parentf4f51171ca6d99b693df2ef6fb71f0347999aa9f (diff)
Syntactic highlighting of NAME_REF for injections
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.
Diffstat (limited to 'crates/ra_ide/src/snapshots/highlight_unsafe.html')
-rw-r--r--crates/ra_ide/src/snapshots/highlight_unsafe.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_ide/src/snapshots/highlight_unsafe.html b/crates/ra_ide/src/snapshots/highlight_unsafe.html
index bd24e6e38..e1540499b 100644
--- a/crates/ra_ide/src/snapshots/highlight_unsafe.html
+++ b/crates/ra_ide/src/snapshots/highlight_unsafe.html
@@ -25,6 +25,7 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd
25.variable { color: #DCDCCC; } 25.variable { color: #DCDCCC; }
26.format_specifier { color: #CC696B; } 26.format_specifier { color: #CC696B; }
27.mutable { text-decoration: underline; } 27.mutable { text-decoration: underline; }
28.unresolved_reference { color: #FC5555; }
28 29
29.keyword { color: #F0DFAF; font-weight: bold; } 30.keyword { color: #F0DFAF; font-weight: bold; }
30.keyword.unsafe { color: #BC8383; font-weight: bold; } 31.keyword.unsafe { color: #BC8383; font-weight: bold; }