Commit 5309108
authored
feat(rbs): Add highlight rules for inline annotations (#262)
## Summary
- Add missing highlight rules from upstream tree-sitter-rbs for RBS
inline annotations (`#:` and `# @rbs` comments)
- Highlights generic modifiers (`unchecked`, `out`, `in`), unnamed
parameters, inline keywords (`inherits`, `generic`, `override`, `skip`),
doc comments, and operators (`?`, `*`, `**`, `&`)
- All capture names follow existing conventions in the file
## Test plan
- [x] `cargo test` passes (60 tests, no changes to test fixtures)
- [x] Manually verify RBS inline annotation highlighting in Zed1 parent 1db992e commit 5309108
1 file changed
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
110 | 116 | | |
111 | 117 | | |
112 | 118 | | |
113 | 119 | | |
114 | 120 | | |
115 | 121 | | |
116 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
117 | 126 | | |
118 | 127 | | |
119 | 128 | | |
| |||
145 | 154 | | |
146 | 155 | | |
147 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
148 | 161 | | |
149 | 162 | | |
150 | 163 | | |
| |||
164 | 177 | | |
165 | 178 | | |
166 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
0 commit comments