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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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

Submitter:  Benno Schulenberg <bens>
Submitted:  Wed 02 Mar 2016 08:18:28 PM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

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>
Group administrator
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>
Group administrator

 

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-06-20 bens Open/ClosedOpen Closed
    2016-03-09 bens StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code