Commit 7d01d46
Fix parsing of variables with keyword prefixes (#1584)
* Fix parsing of variables with keyword prefixes
Fixes #1583
Note that one prefix is not yet supported: `missing`, since fixing that is
not easy for the current parsing implementation (as far as I can tell).
* Add regression test
... as suggested by @sjakobi
I'm not upstreaming this into the standard test suite yet because the
current parser cannot handle `missing`, which would be necessary to
generate the corresponding CBOR1 parent de51daf commit 7d01d46
File tree
3 files changed
+37
-23
lines changed- dhall
- src/Dhall/Parser
- tests
- Dhall/Test
- regression
3 files changed
+37
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | | - | |
| 165 | + | |
167 | 166 | | |
168 | 167 | | |
169 | | - | |
170 | | - | |
| 168 | + | |
171 | 169 | | |
172 | 170 | | |
173 | | - | |
174 | | - | |
| 171 | + | |
175 | 172 | | |
176 | 173 | | |
177 | 174 | | |
178 | 175 | | |
179 | 176 | | |
180 | | - | |
181 | | - | |
182 | | - | |
| 177 | + | |
183 | 178 | | |
184 | 179 | | |
185 | 180 | | |
| |||
208 | 203 | | |
209 | 204 | | |
210 | 205 | | |
211 | | - | |
212 | | - | |
213 | | - | |
| 206 | + | |
214 | 207 | | |
215 | 208 | | |
216 | 209 | | |
| |||
234 | 227 | | |
235 | 228 | | |
236 | 229 | | |
237 | | - | |
238 | | - | |
239 | | - | |
| 230 | + | |
240 | 231 | | |
241 | 232 | | |
242 | 233 | | |
| |||
252 | 243 | | |
253 | 244 | | |
254 | 245 | | |
255 | | - | |
256 | | - | |
257 | | - | |
| 246 | + | |
258 | 247 | | |
259 | 248 | | |
260 | 249 | | |
| |||
321 | 310 | | |
322 | 311 | | |
323 | 312 | | |
324 | | - | |
| 313 | + | |
325 | 314 | | |
326 | 315 | | |
327 | 316 | | |
| |||
433 | 422 | | |
434 | 423 | | |
435 | 424 | | |
436 | | - | |
437 | | - | |
| 425 | + | |
438 | 426 | | |
439 | 427 | | |
440 | 428 | | |
441 | 429 | | |
442 | 430 | | |
443 | 431 | | |
444 | | - | |
445 | | - | |
| 432 | + | |
446 | 433 | | |
447 | 434 | | |
448 | 435 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
183 | 191 | | |
184 | 192 | | |
185 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments