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

 
 

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

Submitter:  Daniel P. Valentine <dpv>
Submitted:  Thu 27 Mar 2014 10:26:40 PM UTC
   
 
Category:  C Severity:  3 - Normal
Item Group:  Wishlist Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

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

 

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

Attach Files:
   
   
Comment:
   

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 dpv (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.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-03-29 dpv StatusNone Fixed
    2014-03-27 dpv CategoryNone C
        Item GroupNone Wishlist

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code