[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Should yaml-ts-mode inherit from prog-mode?

From: Basil Contovounesios
Subject: Re: Should yaml-ts-mode inherit from prog-mode?
Date: Wed, 01 Mar 2023 13:35:01 +0000
User-agent: Gnus/5.13 (Gnus v5.13)

[ Copying Romanos (who's not subscribed to the list) back into this
  subthread.  Please remember to use 'reply to all'. ]

Dmitry Gutov [2023-02-28 20:33 +0200] wrote:

> On 28/02/2023 19:56, Daniel Fleischer wrote:
>> I think yaml doesn't look at all like a programming language. There are
>> no keywords, only free text. The bash scripts you mention are defined in
>> terms of a multi line string but these strings can contain anything, not
>> just code snippets. There's no need for parenthesis or oven quotation
>> marks, it's very lax. It looks much more like free text than a
>> structured language.
> That's fair impression, but it might not hurt to inherit from prog-mode too.
> One criterion that somebody wise once proposed, is whether the language has or
> requires some specific indentation logic, one that's totally different from
> indent-relative.
> YAML passes that test solidly. And I'm talking about its basic structure, not
> bash (or JSON, or etc) insertions.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]