Commit Graph

21 Commits

Author SHA1 Message Date
Greg Pfeil
0031542faf
Add a space before code block info strings
This is for consistency with the `cmark` style. Now the blocks we still
pretty-print ourselves will match the bulk of them that `cmark`
produces.
2024-07-10 13:56:07 -06:00
Greg Pfeil
1dc181b99a
Update the transcripts with cmark
`cmark`’s pretty-printer matches our output pretty well, with a few differences:
- it puts a space between the fence and the info string for in code blocks;
- it prefers `-` over `*` for bulleted lists (as do I) and it indents them;
- it `\`-escapes certain chars very conservatively;
- it prefers indented/unfenced code blocks if there is no info string; and
- it prefers `*` over `_` (unlike any sane person).

This also shows how the change fixes a number of issues:
- fix2158-1.output.md also illustrates how this change fixes #1809;
- alias-many.output.md and input-parse-errors.output.md show how fenced
  code blocks without an info string would use the beginning of the
  content as the info string;
- transcripts-round-trip/main.output.md shows how output blocks for
  generated `unison` stanzas (which could contain nested fenced blocks)
  might not have long-enough fences; and
- error-messages.output.md and generic-parse-errors.output.md show how
  Unison errors were reported on the wrong line number (and thus the
  printed error lines were also incorrect).
2024-07-10 13:37:51 -06:00
Chris Penner
5ca1eb3b8d Replace '.' references with scratch/main 2024-06-25 11:11:07 -07:00
andrii
8b857b152c Adding a message for when ucm started reloading changes 2023-12-22 12:55:24 +01:00
Travis Staton
1e66edcdf2
add type sig to lambdacase transcript 2023-03-02 09:12:29 -05:00
Travis Staton
05edb55049
complete patterns in lambdacase 2023-02-27 11:13:09 -05:00
Rúnar
97bea4f599 Update transcripts 2022-11-22 11:06:28 -05:00
Rúnar
3aeb7da89d Finally 2021-11-19 11:46:18 -05:00
Rúnar
585d887577 Fiddly but works 2021-11-19 00:30:03 -05:00
Rúnar
665b32431c Reverting output so I can debug 2021-11-18 14:47:46 -05:00
Rúnar
9a0dc35e3b . 2021-11-17 20:27:31 -05:00
rlmark
79ad0fa8df updates transcripts 2021-08-23 14:05:37 -07:00
Paul Chiusano
e74399a562 added some comments and removed extra space of indentation 2021-07-20 01:03:15 -04:00
Paul Chiusano
c0252b03c6 moar tests 2021-07-20 00:50:16 -04:00
Paul Chiusano
168afdc0ee update pretty-printer to use multi-guard syntax and improve tests 2021-07-20 00:45:03 -04:00
Dan Doel
7d7a60e9e5 Add transcript changes with improved types 2021-06-08 14:50:04 -04:00
Dan Doel
4a31323811 Add some matching tests 2021-05-12 11:35:33 -04:00
Paul Chiusano
e721fc7d6f Fix #1737 2020-10-27 17:21:37 -04:00
Paul Chiusano
5606c5dc20 refresh transcripts 2020-10-21 22:47:25 -04:00
Paul Chiusano
de8086c9cf fix bug with variable name generation 2020-10-09 18:22:15 -04:00
Paul Chiusano
d872eca0c8 added transcript, but noticed that some hashes differ unexpectedly 2020-10-09 18:10:16 -04:00