Skip to content

morphe 1.0.3

Choose a tag to compare

@GregoryGelfond GregoryGelfond released this 05 Sep 18:48
· 8 commits to main since this release

Seven formatter defects fixed. The house style and command-line surface are otherwise unchanged from 1.0.1.

Fixed

  • A #script(lang) … #end. with an empty body (only blanks or tabs) no longer refuses to format with exit 70: the whitespace-only body is emitted as a single space, which keeps its SCRIPT_BODY token while its value stays empty.
  • #minimize / #maximize no longer emit a line one character past --line-width: the terminating . is now counted in the brace group's fit, so the group explodes at the boundary instead of overrunning it.
  • A bare set { … } used as a rule-body element now drops to its own line when the rule breaks (one body element per line), instead of staying flat beside its neighbour.
  • A nested argument list carrying a trailing block comment now explodes one argument per line when it overflows, and stays stable under re-formatting.
  • not is now always spaced from what follows: not -p and not { b } were rendered not-p and not{ b }.
  • A leading block comment %* … *% now stands on its own line directly above its statement.
  • A blank line before a directive's %! documentation is no longer repeated between the documentation and the directive.

Also recorded: 1.0.2 (a build-source patch that pinned themelios-syntax to a GitHub rev, no behaviour change). See CHANGELOG.md.