nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] [PATCH] syntax: sh: color options distinctively, and co


From: Benno Schulenberg
Subject: Re: [Nano-devel] [PATCH] syntax: sh: color options distinctively, and color also long options
Date: Fri, 30 Mar 2018 10:53:22 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

Op 29-03-18 om 10:44 schreef Brand Huntsman:
> Unlikely? I have thousands of files with double hyphens and also use them in
> function/script names (category/namespace--...). I use my own shell syntax so
> this won't hurt me. But nano shouldn't try to color every character in a
> syntax, less is more. It should only colorize known keywords, not what might
> be something, but often isn't. Single/double hyphen options are not built into
> any shell language, it is just how many programs interpret certain arguments.

In general: true.  But I like it too much that the options, and especially
the long options, get colored.  So I have pushed a mitigation (cf1129a8):
an option must be preceded by whitespace in order to get colored.

Benno

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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