aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/syntax_highlighting/injection.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rename ra_syntax -> syntaxAleksey Kladov2020-08-121-1/+1
|
* Replace SepBy with ItertoolsAleksey Kladov2020-08-121-3/+2
|
* Don't mess with cursor position when adding hashesAleksey Kladov2020-07-091-1/+1
|
* Update injection mechanism and stop injecting through highlight element, ↵Paul Daniel Faria2020-06-231-6/+6
| | | | switch to more general new highlight tag, generic
* Add punctuation highlighting for highlighting punctuation in doctests, fix ↵Paul Daniel Faria2020-06-231-3/+1
| | | | highlighting in doctests
* Add support for marking doctest items as distinct from normal code, add ↵Paul Daniel Faria2020-06-231-1/+5
| | | | default tag to all doctest elements
* 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