aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/syntax_highlighting/injection.rs
Commit message (Collapse)AuthorAgeFilesLines
* Syntactic highlighting of NAME_REF for injectionsLeander Tentrup2020-06-151-1/+1
| | | | | | 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.
* Implement syntax highlighting for doctestsLeander Tentrup2020-06-081-0/+168