[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Should yaml-ts-mode inherit from prog-mode?
From: |
Rudolf Schlatte |
Subject: |
Re: Should yaml-ts-mode inherit from prog-mode? |
Date: |
Tue, 21 Mar 2023 16:03:21 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) |
Yuri Khan <yuri.v.khan@gmail.com> writes:
> In these cases, some users might want to ‘fill-paragraph’ Markdown
> paragraphs inside a literal-styled YAML block.
>
> description: |
> Create a new foo
> and return a 201 with `Location:` header set.
>
> If the input data is invalid,
> return a 400 with a detailed error report.
>
> Without knowing the syntax for the YAML string value, there is not
> enough information to allow or restrict ‘fill-paragraph’.
>
> A sensible compromise could be to allow ‘fill-paragraph’ at user’s
> discretion in all string literals, but recognize YAML’s string start
> and end as paragraph boundaries.
Good points and convincing examples, thank you. It's also easier to
describe the behavior that way: "`fill-paragraph' is enabled inside block
and flow scalars. Text inside a block or flow scalar will be reflowed
as usual, with empty lines acting as paragraph boundaries."
I.e., your example would be reflowed like this (after `M-q' on the line
starting with "Create" or "and"), if I understood it correctly?
description: |
Create a new foo and return a 201 with `Location:` header set.
If the input data is invalid,
return a 400 with a detailed error report.
- Re: Should yaml-ts-mode inherit from prog-mode?, (continued)
- Re: Should yaml-ts-mode inherit from prog-mode?, Romanos Skiadas, 2023/03/04
- Re: Should yaml-ts-mode inherit from prog-mode?, Randy Taylor, 2023/03/19
- Re: Should yaml-ts-mode inherit from prog-mode?, Eli Zaretskii, 2023/03/20
- Re: Should yaml-ts-mode inherit from prog-mode?, Rudolf Schlatte, 2023/03/20
- Re: Should yaml-ts-mode inherit from prog-mode?, Brian Cully, 2023/03/20
- Re: Should yaml-ts-mode inherit from prog-mode?, Eli Zaretskii, 2023/03/20
- Re: Should yaml-ts-mode inherit from prog-mode?, Jostein Kjønigsen, 2023/03/21
- Re: Should yaml-ts-mode inherit from prog-mode?, Eli Zaretskii, 2023/03/21
- Re: Should yaml-ts-mode inherit from prog-mode?, Rudolf Schlatte, 2023/03/21
- Re: Should yaml-ts-mode inherit from prog-mode?, Yuri Khan, 2023/03/21
- Re: Should yaml-ts-mode inherit from prog-mode?,
Rudolf Schlatte <=
- Re: Should yaml-ts-mode inherit from prog-mode?, Yuri Khan, 2023/03/22
- Re: Should yaml-ts-mode inherit from prog-mode?, David Ongaro, 2023/03/21
- Re: Should yaml-ts-mode inherit from prog-mode?, Randy Taylor, 2023/03/20
Re: Re: Should yaml-ts-mode inherit from prog-mode?, Pedro Andres Aranda Gutierrez, 2023/03/05
Re: Should yaml-ts-mode inherit from prog-mode?, Ongaro, 2023/03/11
Re: Re: Should yaml-ts-mode inherit from prog-mode?, Pedro Andres Aranda Gutierrez, 2023/03/21