[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] disable a time-consuming multiline regex?
From: |
doark |
Subject: |
Re: [Nano-devel] disable a time-consuming multiline regex? |
Date: |
Sat, 30 Jan 2016 23:59:28 -0500 |
On Tue, 19 Jan 2016 17:49:09 Benno Schulenberg wrote:
<snip>
> You might change it to ""(\\"|[^"])*"" to remove the duplication
> you mention.
That's more clear, I like it.
> > So that the colours would go across the whole line, I like it that
> > way.
>
> You like it that way... But no one else seems to: vim and emacs
> and geany and gedit, they all colour what comes after #include
> differently from the "#include" itself. Nano does that too, and
> will keep doing that.
Since when was nano emacs, vim, or geany?
Really, you don't *have* to do what other editors do, oh eager lemming :)
I'll change the regex to doing it their way.
> > I think we are several different people with multiple very different
> > versions of what should be what colour, if it should be coloured and
> > what should be coloured, etc.
>
> Right. So... if you want to propose a change to some of the colourings,
> you will have to give good arguments as to why your change improves
> things, referring to other editors, to harmony and contrast of colours,
> to coherence with other nanorc files...
I'd cite 'harmony and contrast of colours' but that depends on your
background color, yellow and the other bright colors look bad with
white, but really good with black. There is no silver (or rainbow), bullet
AFAIK. I'll leave it as is for the user to change.
CHANGES, the how and why (if you find this unclear like my other attempts
please say so so I can improve):
1. String HL
From two expressions into one
Used char classes
Made second not over or under HL
Made first not under HL
2. Reminder HL
Mandated that they be in comment blocks
added optional continued HL of following common punctuation.
Removed useless comma
3. Trailing white space HL
Removed useless comma
Sincerely, David
c.nanorc.diff
Description: Text Data