|
From: | Dmitry Gutov |
Subject: | Re: Should yaml-ts-mode inherit from prog-mode? |
Date: | Tue, 28 Feb 2023 20:33:39 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |