mirror of
https://github.com/unisonweb/unison.git
synced 2024-11-14 07:51:12 +03:00
@signature is now @inlineSignature
This commit is contained in:
parent
706414dbcf
commit
24cf74d745
@ -375,12 +375,12 @@ lexemes' eof = P.optional space >> do
|
||||
_ <- lit "}"
|
||||
pure (join s)
|
||||
signature = wrap "syntax.docSignature" $ do
|
||||
_ <- lit "@signatures" *> (lit " {" <|> lit "{") *> CP.space
|
||||
_ <- (lit "@signatures" <|> lit "@signature") *> (lit " {" <|> lit "{") *> CP.space
|
||||
s <- join <$> P.sepBy1 signatureLink comma
|
||||
_ <- lit "}"
|
||||
pure s
|
||||
signatureInline = wrap "syntax.docSignatureInline" $ do
|
||||
_ <- lit "@signature" *> (lit " {" <|> lit "{") *> CP.space
|
||||
_ <- lit "@inlineSignature" *> (lit " {" <|> lit "{") *> CP.space
|
||||
s <- signatureLink
|
||||
_ <- lit "}"
|
||||
pure s
|
||||
|
@ -96,10 +96,10 @@ Some rendering targets also support folded source:
|
||||
|
||||
@foldedSource{type Optional, sqr}
|
||||
|
||||
You can also include just a signature, inline, with @signature{sqr},
|
||||
You can also include just a signature, inline, with @inlineSignature{sqr},
|
||||
or you can include one or more signatures as a block:
|
||||
|
||||
@signatures{sqr, Nat.+}
|
||||
@signature{sqr, Nat.+}
|
||||
|
||||
## Inline snippets
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user