bugGNU nano - Bugs: bug #47324, when the syntax name is unquoted,...

 
 

bug #47324: when the syntax name is unquoted, the error message is confusing

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Wed 02 Mar 2016 08:18:28 PM UTC  
 
Severity: 3 - NormalStatus: Fixed
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.

 

Wed 09 Mar 2016 08:31:20 PM UTC, comment #1:

Fixed in SVN, r5711 -- requiring enclosing double quotes.

Now... shall we accept unquoted names?

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Wed 02 Mar 2016 08:18:28 PM UTC, original submission:

Add for example this line at the end of your .nanorc:

syntax example "tralala"

At startup nano will report:

Regex strings must begin and end with a " character

Huh? A name is not a regex. So it should simply say: "A syntax name must begin and end...".

It will take some work to make it say the right thing, though.

So... alternatively: simply accept a syntax name without quotes. I like that better, because 1) it distinguishes it from a regex; 2) it makes for a little symmetry, because the name given to the extendsyntax command /must/ be unquoted; 3) the name given to the -Y or --syntax option does not need to be quoted either.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.

 

(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 (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 20 Jun 2016 09:45:59 AM UTCbensOpen/ClosedOpen=>Closed
    Wed 09 Mar 2016 08:31:20 PM UTCbensStatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1