aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/snapshots/highlight_strings.html
Commit message (Collapse)AuthorAgeFilesLines
* Update injection mechanism and stop injecting through highlight element, ↵Paul Daniel Faria2020-06-231-52/+52
| | | | switch to more general new highlight tag, generic
* Add punctuation highlighting for highlighting punctuation in doctests, fix ↵Paul Daniel Faria2020-06-231-53/+53
| | | | highlighting in doctests
* Add default color and opacity for documentation and injected, respectively, ↵Paul Daniel Faria2020-06-231-0/+2
| | | | in the html generator
* Syntax highlighting for escape sequences in stringsLeander Tentrup2020-06-171-1/+6
|
* Syntactic highlighting of NAME_REF for injectionsLeander Tentrup2020-06-151-0/+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.
* Better unsafe highlihgting testsAleksey Kladov2020-06-081-1/+2
|
* Fix bug in lexer for format specifier where the `type` and `width` were not ↵Leander Tentrup2020-06-071-1/+1
| | | | correctly distinguished
* Add highlight support for unsafe fn calls and raw ptr derefPaul Daniel Faria2020-06-021-0/+1
|
* Test case for format string highlighting of closing curlybraceRoland Ruckerbauer2020-05-301-0/+1
|
* Highlight `true` and `false` as literalsMatthew Jasper2020-05-241-0/+1
|
* Highlight the name in macro declarationsMatthew Jasper2020-05-101-2/+2
|
* Introduce new semantic highlight token for format specifierLeander Tentrup2020-04-281-35/+36
|
* Adapt format specifier highlighting to support escaped squences and unicode ↵Leander Tentrup2020-04-221-0/+5
| | | | identifiers
* Implement syntax highlighting for format stringsLeander Tentrup2020-04-201-0/+77
Detailed changes: 1) Implement a lexer for string literals that divides the string in format specifier `{}` including the format specifier modifier. 2) Adapt syntax highlighting to add ranges for the detected sequences. 3) Add a test case for the format string syntax highlighting.