aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/code_model.rs
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_hir/src/code_model.rs
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_hir/src/code_model.rs')
0 files changed, 0 insertions, 0 deletions