Commit 6a12fff
authored
Report bad macro names more clearly (#147)
This change prevents a crash for various cases of bad syntax involving
macro names. In particular things like `@[x] a` and `@A.x a`.
The latter case where the @ is separated from the actual macro name is a
pain to deal with and is only approximately correct in this PR. But I'm
not sure why we even support this syntax and maybe we could
warn about it or deprecate it. So unclear whether going to greater
lengths emitting K"TOMBSTONE" to be precise about error reporting in
that case is worth it.1 parent 6d92ef3 commit 6a12fff
3 files changed
+38
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
189 | 192 | | |
190 | 193 | | |
191 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1546 | 1546 | | |
1547 | 1547 | | |
1548 | 1548 | | |
| 1549 | + | |
1549 | 1550 | | |
1550 | 1551 | | |
1551 | 1552 | | |
1552 | 1553 | | |
| 1554 | + | |
1553 | 1555 | | |
1554 | 1556 | | |
1555 | 1557 | | |
| |||
2235 | 2237 | | |
2236 | 2238 | | |
2237 | 2239 | | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
2238 | 2255 | | |
2239 | 2256 | | |
2240 | | - | |
2241 | | - | |
| 2257 | + | |
| 2258 | + | |
| 2259 | + | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
| 2263 | + | |
| 2264 | + | |
2242 | 2265 | | |
2243 | 2266 | | |
2244 | 2267 | | |
| |||
2253 | 2276 | | |
2254 | 2277 | | |
2255 | 2278 | | |
2256 | | - | |
2257 | | - | |
| 2279 | + | |
| 2280 | + | |
| 2281 | + | |
| 2282 | + | |
| 2283 | + | |
| 2284 | + | |
| 2285 | + | |
| 2286 | + | |
2258 | 2287 | | |
2259 | 2288 | | |
2260 | 2289 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| 264 | + | |
264 | 265 | | |
265 | 266 | | |
266 | 267 | | |
| |||
326 | 327 | | |
327 | 328 | | |
328 | 329 | | |
| 330 | + | |
329 | 331 | | |
330 | 332 | | |
331 | 333 | | |
| |||
0 commit comments