diff options
author | Leander Tentrup <[email protected]> | 2020-06-14 13:43:43 +0100 |
---|---|---|
committer | Leander Tentrup <[email protected]> | 2020-06-15 21:13:53 +0100 |
commit | c4b3db0c2f307d1d782af88ded260e4c6593cae0 (patch) | |
tree | dd32c19bf36913db87d0dde84f70e6fd1b4c2e5a /crates/ra_arena/src/map.rs | |
parent | f4f51171ca6d99b693df2ef6fb71f0347999aa9f (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_arena/src/map.rs')
0 files changed, 0 insertions, 0 deletions