bugGNU indent - Bugs: bug #41982, Treat underscore as function...

 
 

bug #41982: Treat underscore as function name/string delimiter in gettext-style strings.

Submitted by:  Daniel P. Valentine <dpv>
Submitted on:  Thu 27 Mar 2014 10:26:40 PM UTC  
 
Category: CSeverity: 3 - Normal
Item Group: WishlistStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Sat 29 Mar 2014 04:55:52 PM UTC, comment #1:

Added -gts, not a default, to treat _("...") as a string when breaking lines.

Daniel P. Valentine <dpv>
Project Administrator
Thu 27 Mar 2014 10:26:40 PM UTC, original submission:

Because the gettext standard uses _("") delimiters around strings for localization, it would be good to either treat that as a type of string constant or to keep the underscore with the following opening paren as a function call.

Considering that gettext is GNU-standard, consider making this the default treatment in the -gnu option set.

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487517

Daniel P. Valentine <dpv>
Project Administrator

 

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

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 29 Mar 2014 04:55:52 PM UTCdpvStatusNone=>Fixed
    Thu 27 Mar 2014 10:34:40 PM UTCdpvCategoryNone=>C
      Item GroupNone=>Wishlist

    Back to the top


    Powered by Savane 3.1-cleanup