Commit 03663b9
authored
rust: Highlight enum variants as variant (zed-industries#47918)
Improve zed-industries#45546, by changing the capture to be variant instead of type.
Release Notes:
- Improved Rust enum variant highlighting as variant instead of type.
Before (note variants have the same style as `Foo`):
<img width="276" height="162" alt="image"
src="https://github.com/user-attachments/assets/fa0d8f48-a286-4a8d-b89d-269cb1657e55"
/>
After:
<img width="276" height="162" alt="image"
src="https://github.com/user-attachments/assets/c442494a-7550-481a-a8b9-f2d944a67868"
/>1 parent 4dde88c commit 03663b9
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1807 | 1807 | | |
1808 | 1808 | | |
1809 | 1809 | | |
| 1810 | + | |
1810 | 1811 | | |
1811 | 1812 | | |
1812 | 1813 | | |
1813 | 1814 | | |
1814 | 1815 | | |
1815 | 1816 | | |
1816 | 1817 | | |
| 1818 | + | |
1817 | 1819 | | |
1818 | 1820 | | |
1819 | 1821 | | |
| |||
1855 | 1857 | | |
1856 | 1858 | | |
1857 | 1859 | | |
1858 | | - | |
| 1860 | + | |
1859 | 1861 | | |
1860 | 1862 | | |
1861 | 1863 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
0 commit comments