aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/syntax_highlighting/tests.rs
Commit message (Collapse)AuthorAgeFilesLines
* SimplifyAleksey Kladov2020-06-241-8/+3
|
* Use fixtures moreAleksey Kladov2020-06-241-6/+7
|
* Fix underflow panic when doctests are at top of filePaul Daniel Faria2020-06-231-0/+3
|
* Syntax highlighting for documentation comments on macro definitionsLeander Tentrup2020-06-191-0/+9
|
* Syntax highlighting for escape sequences in stringsLeander Tentrup2020-06-171-0/+4
|
* Inspect markdown code fences to determine whether to apply syntax highlightingLeander Tentrup2020-06-161-1/+5
|
* Syntactic highlighting of NAME_REF for injectionsLeander Tentrup2020-06-151-2/+12
| | | | | | 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.
* Fix syntax highlighting of recursive macrosLeander Tentrup2020-06-151-0/+8
| | | | Add syntax highlighting for the BANG (`!`) token if the parent is `MACRO_CALL`.
* In field patterns, don't highlight local binding as a fieldAleksey Kladov2020-06-101-12/+14
|
* Better unsafe highlihgting testsAleksey Kladov2020-06-081-1/+1
|
* Implement syntax highlighting for doctestsLeander Tentrup2020-06-081-0/+50
|
* Remove redundancy in syntax highlighting testsLeander Tentrup2020-06-071-32/+27
|
* Add highlight support for unsafe fn calls and raw ptr derefPaul Daniel Faria2020-06-021-0/+31
|
* Test case for format string highlighting of closing curlybraceRoland Ruckerbauer2020-05-301-0/+1
|
* Color `for` as a regular keyword when it's part of impl _ for _George Fraser2020-05-101-0/+10
|
* Color `in` as a control keywordGeorge Fraser2020-05-101-0/+4
|
* Highlight mutable statics as mutableMatthew Jasper2020-05-101-1/+6
|
* Convert tests to text-sizeAleksey Kladov2020-04-251-1/+1
|
* 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/+65
| | | | | | | 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.
* Fix incorrect order of syntax highlight rangesLeander Tentrup2020-04-171-0/+12
|
* Simplify HTML highlighter and add test case for highlight_injection logicLeander Tentrup2020-04-061-12/+21
|
* Flatten nested highlight ranges during DFS traversalLeander Tentrup2020-04-031-0/+16
|
* Correctly flag 'lifetime definitions as definitionsAleksey Kladov2020-02-281-5/+4
|
* Fix highlighting of const patternsAleksey Kladov2020-02-281-5/+12
|
* Fix highlighting testAleksey Kladov2020-02-281-1/+1
|
* Move tests to a new fileAleksey Kladov2020-02-271-0/+127