nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] syntax highlight tweak for bash scripts


From: David Lawrence Ramsey
Subject: Re: [Nano-devel] syntax highlight tweak for bash scripts
Date: Thu, 01 Jun 2006 13:22:47 -0400
User-agent: Thunderbird 1.5.0.2 (X11/20060420)

Benno Schulenberg wrote:

<snip>

> The highlighting example for Bourne shell scripts does not colour all
> special variables, such as $? and $@, correctly.  Attached patch fixes
> this.  It makes a small change to the comment colouring too, to
> prevent the $# variable from being recoloured.

Applied.  Thanks.

> Personally I split up the string colouring into
>   color brightyellow ""(\\.|[^"])*""
> before, and
>   color brightyellow "'(\\.|[^'])*'"
> after the brightred variable colouring, so that it shows which
> variables get evaluated and which not.  See the second patch.  This of
> course causes strings that contain a "#" to be miscoloured, but
> currently strings inside comments are miscoloured, so that's about
> even, I think.

Unfortunately, the new miscoloring looks weirder to me than the current
miscoloring, so I've left it the way it is for now.





reply via email to

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