aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/syntax_highlighting/injection.rs
Commit message (Collapse)AuthorAgeFilesLines
* Fix underflow panic when doctests are at top of filePaul Daniel Faria2020-06-231-4/+8
|
* Remove logic to mark all doctest code asPaul Daniel Faria2020-06-181-1/+0
|
* Ensure all existing doctest code highlights have documentation modifierPaul Daniel Faria2020-06-171-4/+5
|
* Add highlighting support for doc commentsPaul Daniel Faria2020-06-171-2/+6
|
* 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