Skip to content

@-tags delimiter #1226

Open
Open
@panglesd

Description

@panglesd

I think it is clear from #1138 that tags should not expand unconditionally to the rest of the content.

So we need a way to have tags extend to several paragraphs. To make the discussion clearer, I open this issue separately from #1138 (which is about "what is the range of undelimited tags").

Here are the various options that I have recollected:

  1. (From @dbuenzli) a single @ on an empty line adds the next block in the tag
    @return This is a paragraph
    @
    This is another paragraph in the same tag block
    
  2. (From @dbuenzli) A @begin-block ... @end-block delimiter:
    @return @begin-block This is a paragraph
    
    This is another paragraph in the same tag block @end-block
    
  3. (From @EmileTrotignon) A {| |} delimiter:
    @return {| This is a paragraph
    
    This is another paragraph in the same tag block |}
    
  4. (From @EmileTrotignon) A {@ ...} delimitation:
    {@return This is a paragraph
    
    This is another paragraph in the same tag block}
    

Option 1. is weird to me (it can be explained, if we decide to delimit the range of an undelimited tag block with blank lines).
Option 2. I'm not a fan since it feels quite orthogonal to what is currently used to delimit, in the odoc syntax.
Option 3. is similar to option 2, replacing 11 letters with 2 symbols. Still orthogonal, I think!
Option 4. is clearly my favorite, as it seems to integrate naturally in the odoc way of delimiting.

Feel free to comment, suggest another syntax, ... like and subscribe!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions