unisonweb / unison

A friendly programming language from the future
https://unison-lang.org
Other
5.81k stars 271 forks source link

Unify `@keyword{…}` constructs in Doc parser #5450

Closed sellout closed 1 week ago

sellout commented 1 week ago

Overview

There are a number of these that had previously been duplicated.

This is a refactor that shouldn’t affect the user experience, but could provide more consistency as it prevents constructs from diverging.

Implementation notes

This combines separate implementations into a single one, with the contents of {…} being parsed based on the specific keyword.

Test coverage

There are transcripts for all of these keywords already.