Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Unsafe borrow of packed fields: account for borrow through ref binding, auto ↵ | Paul Daniel Faria | 2020-08-10 | 1 | -15/+16 |
| | | | | ref function calls | ||||
* | Cleanup repr check, fix packed repr check and test | Paul Daniel Faria | 2020-08-10 | 1 | -9/+5 |
| | |||||
* | Limit scope of unsafe to & instead of all ref exprs, add test showing ↵ | Paul Daniel Faria | 2020-08-10 | 1 | -0/+19 |
| | | | | missing support for autoref behavior | ||||
* | Add tracking of packed repr, use it to highlight unsafe refs | Paul Daniel Faria | 2020-08-10 | 1 | -0/+11 |
| | | | | | | Taking a reference to a misaligned field on a packed struct is an unsafe operation. Highlight that behavior. Currently, the misaligned part isn't tracked, so this highlight is a bit too aggressive. | ||||
* | Merge #5692 | bors[bot] | 2020-08-10 | 1 | -0/+17 |
|\ | | | | | | | | | | | | | | | | | | | 5692: Add support for extern crate r=jonas-schievink a=Nashenas88 This adds syntax highlighting, hover and goto def functionality for extern crate. Fixes #5690 Co-authored-by: Paul Daniel Faria <[email protected]> | ||||
| * | Add support for extern crate | Paul Daniel Faria | 2020-08-08 | 1 | -0/+17 |
| | | | | | | | | | | This adds syntax highlighting, hover and goto def functionality for extern crate | ||||
* | | Merge #5684 | bors[bot] | 2020-08-08 | 1 | -0/+11 |
|\ \ | |/ |/| | | | | | | | | | | | | | | | 5684: Semantic highlighting for unsafe union field access r=jonas-schievink a=Nashenas88 This change adds support for unions in inference and lowering, then extends on that to add the unsafe semantic modifier on field access only. The `is_possibly_unsafe` function in `syntax_highlighting.rs` could be extended to support fns and static muts so that their definitions are not highlighted as unsafe, but only their usage. Also, each commit of this PR updates the tests. By reviewing the files by commit, it's easy to see how the changes in the code affected the tests. Co-authored-by: Paul Daniel Faria <[email protected]> | ||||
| * | Add test for unsafe union field access highlighting | Paul Daniel Faria | 2020-08-07 | 1 | -0/+11 |
| | | |||||
* | | Add test for accessing static mut | Paul Daniel Faria | 2020-08-07 | 1 | -0/+7 |
|/ | |||||
* | Add test showing unresolved module rename | Paul Daniel Faria | 2020-08-04 | 1 | -0/+3 |
| | |||||
* | Semantic Highlighting: Emit mutable modifier for 'self' when applicable | Lukas Wirth | 2020-07-13 | 1 | -0/+10 |
| | |||||
* | Move test data to test_data directory | Aleksey Kladov | 2020-07-01 | 1 | -6/+6 |
| | |||||
* | Add file support to expect | Aleksey Kladov | 2020-07-01 | 1 | -12/+10 |
| | |||||
* | Simplify | Aleksey Kladov | 2020-06-24 | 1 | -8/+3 |
| | |||||
* | Use fixtures more | Aleksey Kladov | 2020-06-24 | 1 | -6/+7 |
| | |||||
* | Fix underflow panic when doctests are at top of file | Paul Daniel Faria | 2020-06-23 | 1 | -0/+3 |
| | |||||
* | Syntax highlighting for documentation comments on macro definitions | Leander Tentrup | 2020-06-19 | 1 | -0/+9 |
| | |||||
* | Syntax highlighting for escape sequences in strings | Leander Tentrup | 2020-06-17 | 1 | -0/+4 |
| | |||||
* | Inspect markdown code fences to determine whether to apply syntax highlighting | Leander Tentrup | 2020-06-16 | 1 | -1/+5 |
| | |||||
* | Syntactic highlighting of NAME_REF for injections | Leander Tentrup | 2020-06-15 | 1 | -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 macros | Leander Tentrup | 2020-06-15 | 1 | -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 field | Aleksey Kladov | 2020-06-10 | 1 | -12/+14 |
| | |||||
* | Better unsafe highlihgting tests | Aleksey Kladov | 2020-06-08 | 1 | -1/+1 |
| | |||||
* | Implement syntax highlighting for doctests | Leander Tentrup | 2020-06-08 | 1 | -0/+50 |
| | |||||
* | Remove redundancy in syntax highlighting tests | Leander Tentrup | 2020-06-07 | 1 | -32/+27 |
| | |||||
* | Add highlight support for unsafe fn calls and raw ptr deref | Paul Daniel Faria | 2020-06-02 | 1 | -0/+31 |
| | |||||
* | Test case for format string highlighting of closing curlybrace | Roland Ruckerbauer | 2020-05-30 | 1 | -0/+1 |
| | |||||
* | Color `for` as a regular keyword when it's part of impl _ for _ | George Fraser | 2020-05-10 | 1 | -0/+10 |
| | |||||
* | Color `in` as a control keyword | George Fraser | 2020-05-10 | 1 | -0/+4 |
| | |||||
* | Highlight mutable statics as mutable | Matthew Jasper | 2020-05-10 | 1 | -1/+6 |
| | |||||
* | Convert tests to text-size | Aleksey Kladov | 2020-04-25 | 1 | -1/+1 |
| | |||||
* | Adapt format specifier highlighting to support escaped squences and unicode ↵ | Leander Tentrup | 2020-04-22 | 1 | -0/+5 |
| | | | | identifiers | ||||
* | Implement syntax highlighting for format strings | Leander Tentrup | 2020-04-20 | 1 | -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 ranges | Leander Tentrup | 2020-04-17 | 1 | -0/+12 |
| | |||||
* | Simplify HTML highlighter and add test case for highlight_injection logic | Leander Tentrup | 2020-04-06 | 1 | -12/+21 |
| | |||||
* | Flatten nested highlight ranges during DFS traversal | Leander Tentrup | 2020-04-03 | 1 | -0/+16 |
| | |||||
* | Correctly flag 'lifetime definitions as definitions | Aleksey Kladov | 2020-02-28 | 1 | -5/+4 |
| | |||||
* | Fix highlighting of const patterns | Aleksey Kladov | 2020-02-28 | 1 | -5/+12 |
| | |||||
* | Fix highlighting test | Aleksey Kladov | 2020-02-28 | 1 | -1/+1 |
| | |||||
* | Move tests to a new file | Aleksey Kladov | 2020-02-27 | 1 | -0/+127 |