aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/syntax_highlighting/injection.rs
Commit message (Collapse)AuthorAgeFilesLines
* Inspect markdown code fences to determine whether to apply syntax highlightingLeander Tentrup2020-06-161-2/+12
|
* 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