Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rename ra_ide_db -> ide_db | Aleksey Kladov | 2020-08-13 | 1 | -1/+1 |
| | |||||
* | Rename ra_syntax -> syntax | Aleksey Kladov | 2020-08-12 | 1 | -2/+2 |
| | |||||
* | Rename ra_prof -> profile | Aleksey Kladov | 2020-08-12 | 1 | -2/+1 |
| | |||||
* | Remove unused import left behind after rebasing | Paul Daniel Faria | 2020-08-10 | 1 | -1/+1 |
| | |||||
* | Fix type names broken by rebase, redo expected test because of rebase | Paul Daniel Faria | 2020-08-10 | 1 | -3/+3 |
| | |||||
* | Return bool from is_unsafe_method_call and cleanup usages | Paul Daniel Faria | 2020-08-10 | 1 | -5/+6 |
| | |||||
* | Move semantic logic into Semantics, fix missing tag for safe amp operator, ↵ | Paul Daniel Faria | 2020-08-10 | 1 | -61/+28 |
| | | | | using functional methods rather than clunky inline closure | ||||
* | Move unsafe packed ref logic to Semantics, use `Attrs::by_key` to simplify ↵ | Paul Daniel Faria | 2020-08-10 | 1 | -32/+2 |
| | | | | repr attr lookup | ||||
* | Revert function structs back to using bool to track self param, use first ↵ | Paul Daniel Faria | 2020-08-10 | 1 | -3/+8 |
| | | | | param for self information in syntax highlighting instead | ||||
* | Deduplicate unsafe method call into a single function | Paul Daniel Faria | 2020-08-10 | 1 | -41/+31 |
| | |||||
* | Unsafe borrow of packed fields: account for borrow through ref binding, auto ↵ | Paul Daniel Faria | 2020-08-10 | 1 | -20/+117 |
| | | | | ref function calls | ||||
* | Cleanup repr check, fix packed repr check and test | Paul Daniel Faria | 2020-08-10 | 1 | -2/+2 |
| | |||||
* | Update FIXME comment to be more useful | Paul Daniel Faria | 2020-08-10 | 1 | -1/+2 |
| | |||||
* | Limit scope of unsafe to & instead of all ref exprs, add test showing ↵ | Paul Daniel Faria | 2020-08-10 | 1 | -1/+1 |
| | | | | missing support for autoref behavior | ||||
* | Remove token tree from ReprKind::Other variant, expose ReprKind higher, ↵ | Paul Daniel Faria | 2020-08-10 | 1 | -7/+1 |
| | | | | remove debug println. | ||||
* | Add tracking of packed repr, use it to highlight unsafe refs | Paul Daniel Faria | 2020-08-10 | 1 | -0/+24 |
| | | | | | | 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/+2 |
|\ | | | | | | | | | | | | | | | | | | | 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/+2 |
| | | | | | | | | | | This adds syntax highlighting, hover and goto def functionality for extern crate | ||||
* | | Merge #5684 | bors[bot] | 2020-08-08 | 1 | -10/+56 |
|\ \ | |/ |/| | | | | | | | | | | | | | | | 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]> | ||||
| * | Apply unsafe semantic highlighting to union field access | Paul Daniel Faria | 2020-08-08 | 1 | -10/+56 |
| | | |||||
* | | Mark static mutable names as unsafe | Paul Daniel Faria | 2020-08-07 | 1 | -0/+1 |
|/ | |||||
* | Update grammar | Aleksey Kladov | 2020-08-01 | 1 | -1/+1 |
| | |||||
* | Rename DotDotPat -> RestPat | Aleksey Kladov | 2020-07-31 | 1 | -1/+1 |
| | |||||
* | Rename BindPat -> IdentPat | Aleksey Kladov | 2020-07-31 | 1 | -1/+1 |
| | |||||
* | Finalize impl Grammar | Aleksey Kladov | 2020-07-30 | 1 | -1/+1 |
| | |||||
* | Finalize Trait grammar | Aleksey Kladov | 2020-07-30 | 1 | -1/+1 |
| | |||||
* | Finalize const&static grammar | Aleksey Kladov | 2020-07-30 | 1 | -2/+2 |
| | |||||
* | Rename EnumVariant -> Variant | Aleksey Kladov | 2020-07-30 | 1 | -1/+1 |
| | |||||
* | Rename EnumDef -> Enum | Aleksey Kladov | 2020-07-30 | 1 | -1/+1 |
| | |||||
* | Rename StructDef -> Struct | Aleksey Kladov | 2020-07-30 | 1 | -1/+1 |
| | |||||
* | Finalize union grammar | Aleksey Kladov | 2020-07-30 | 1 | -1/+1 |
| | |||||
* | Rename FieldDef -> Field | Aleksey Kladov | 2020-07-30 | 1 | -1/+1 |
| | |||||
* | Rename TypeAliasDef -> TypeAlias | Aleksey Kladov | 2020-07-30 | 1 | -1/+1 |
| | |||||
* | Rename FnDef -> Fn | Aleksey Kladov | 2020-07-30 | 1 | -2/+2 |
| | |||||
* | On second thought, we want to preserve the textMate here where all ↵ | GrayJack | 2020-07-21 | 1 | -1/+3 |
| | | | | punctuation that are from a Attr be highlited as Attribute | ||||
* | `#` as Attribute | GrayJack | 2020-07-21 | 1 | -0/+1 |
| | | | | - Issue #5453 | ||||
* | @ as operator | GrayJack | 2020-07-21 | 1 | -2/+3 |
| | |||||
* | Assingment semantic highlight | GrayJack | 2020-07-20 | 1 | -1/+7 |
| | |||||
* | Handle semantic highlight when STAR is part of the `*{const, mut}` | GrayJack | 2020-07-20 | 1 | -1/+4 |
| | |||||
* | Highlight more cases of SyntaxKind when it is a punctuation | GrayJack | 2020-07-20 | 1 | -14/+32 |
| | |||||
* | Add new `Punctuation` highlight tag | Leander Tentrup | 2020-07-15 | 1 | -1/+1 |
| | |||||
* | Highlight punctuation as `HighlightTag::Operator` | Leander Tentrup | 2020-07-15 | 1 | -0/+1 |
| | |||||
* | Semantic Highlighting: Emit mutable modifier for 'self' when applicable | Lukas Wirth | 2020-07-13 | 1 | -3/+24 |
| | |||||
* | Use dedicated semantic highlight tag for parameters | Aleksey Kladov | 2020-07-11 | 1 | -2/+3 |
| | | | | closes #5106 | ||||
* | Improve readability be replacing hard-to-read if-else branches with a match | Paul Daniel Faria | 2020-06-24 | 1 | -16/+20 |
| | |||||
* | Remove unrelated change | Paul Daniel Faria | 2020-06-23 | 1 | -4/+2 |
| | |||||
* | Update comment for pop_and_inject | Paul Daniel Faria | 2020-06-23 | 1 | -2/+2 |
| | | | Co-authored-by: Leander Tentrup <[email protected]> | ||||
* | Update injection mechanism and stop injecting through highlight element, ↵ | Paul Daniel Faria | 2020-06-23 | 1 | -17/+38 |
| | | | | switch to more general new highlight tag, generic | ||||
* | Add punctuation highlighting for highlighting punctuation in doctests, fix ↵ | Paul Daniel Faria | 2020-06-23 | 1 | -12/+13 |
| | | | | highlighting in doctests | ||||
* | Add support for marking doctest items as distinct from normal code, add ↵ | Paul Daniel Faria | 2020-06-23 | 1 | -7/+11 |
| | | | | default tag to all doctest elements |