emacs-devel
[Top][All Lists]
Advanced

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

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


From: Lynn Winebarger
Subject: Re: Should yaml-ts-mode inherit from prog-mode?
Date: Thu, 2 Mar 2023 07:55:48 -0500

On Wed, Mar 1, 2023, 11:36 AM Vasilij Schneidermann <mail@vasilij.de> wrote:

> Deriving from prog-mode feels weird since YAML is not a programming
> language.

Yes, that was pretty much my reasoning. To quote the `prog-mode`
docstring: "Major mode for editing programming language source code."

Unless there's some XSLT equivalent for YAML, I do not see it being
programming language source code at all.

Perhaps "programming language" is intended to mean that a given file is "legal" is decidable (which lets TeX off the hook).

YAML has been argued to be several things (configuration,
serialization, text) and having to choose one in particular cannot work
out in a satisfying way unless it's about a very basic property not
based on opinion 

The YAML spec is insistent that it is a data serialization format.

Lynn


reply via email to

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