bugGNU nano - Bugs: bug #48275, syntax names may no longer contain...

 
 

bug #48275: syntax names may no longer contain whitespace

Submitted by:  Eric F <ief>
Submitted on:  Mon 20 Jun 2016 11:13:28 AM UTC  
 
Severity: 2 - MinorStatus: Wont Fix
Assigned to: Benno Schulenberg <bens>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 04 Jul 2016 02:25:17 AM UTC, comment #4:

Yes, that's fine. Thanks.

I found my notes and it was from here: https://freethegnu.wordpress.com/2007/06/23/nano-shortcuts-syntax-highlight-and-nanorc-config-file-pt2/ I learned about the colors …in 2012 or so. But the other link might be the one I found and added to my collection.

Eric F <ief>
Sat 02 Jul 2016 04:04:01 PM UTC, comment #3:

Most likely you got it from here:

https://github.com/pwaleczek/.nanorc/blob/master/delphi.nanorc

Who probably took it from here:

https://nas-tweaks.net/300/syntax-highlighting-with-nano-nanorc-for-delphi/

Anyway, as I was planning to allow syntax names to be unquoted in nanorc files, it will not be possible (or at least: too hard) to allow whitespace inside syntax names. So I am marking the change as intentional and thus wontfix.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon 20 Jun 2016 12:23:34 PM UTC, comment #2:

Tried to find the source/link now where I got it from. I think I might have got it from a “pack” of files, but that was long ago, like 5+ years ago. But it's been working since.

I'll probably just rename the syntax then, or remove the include line.

Thanks.

/Eric

Eric F <ief>
Mon 20 Jun 2016 11:48:01 AM UTC, comment #1:

Hmm... Apparently I've assumed that syntax names will not contain whitespace. ... Don't know if I want to change that. Will think about it.

But... delphi.nanorc? Did you make it yourself, or does Apple provide it? Because it's not in nano.

If you made it yourself, why not simply call it "delphi"? Lower case, one short word, so that it is easy to type when one day you need --syntax=delphi for a file with an unusual extension. Because that is the only purpose of giving a syntax a name.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon 20 Jun 2016 11:13:28 AM UTC, original submission:

Updated nano yesterday to 2.6.0. When opening a file...

Syntax says:

When I remove the blank, the err msgs disappears.
(tried to escape the blank, but it didn't work. :))

- - -

OS X, nano-2.6.0

Eric F <ief>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bens (Posted a comment)
  • -unavailable- added by ief (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 29 Aug 2016 07:37:47 PM UTCbensOpen/ClosedOpen=>Closed
    Sat 02 Jul 2016 04:04:01 PM UTCbensSeverity3 - Normal=>2 - Minor
      StatusNone=>Wont Fix
    Tue 21 Jun 2016 10:13:02 AM UTCbensSummarynanorc file and whitespace in syntax names=>syntax names may no longer contain whitespace
    Mon 20 Jun 2016 11:48:01 AM UTCbensAssigned toNone=>bens
      Summarynanorc file and whitespace=>nanorc file and whitespace in syntax names

    Back to the top


    Powered by Savane 3.1-cleanup1