bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Indent 2.2.9 : Suggested Option 1: To Specify a Regex Which Will Be Igno


From: John Johnson
Subject: Indent 2.2.9 : Suggested Option 1: To Specify a Regex Which Will Be Ignored by Indent and Left As-Is 2: Bug? blank line before comments add blank line at line 1
Date: Wed, 21 Jun 2006 19:27:45 -0400

Thanks for Indent 2.2.9

 

1: Suggested Option To Specify a Regex Which Will Be Ignored by Indent
and Left As-Is

 

Reason: I develop microprocessor code in C for embedded systems and the
compiler I use supports binary constant declarations as well as
hexadecimal declarations. The pattern 0b00010101 is equivalent to 0x15
but Indent mangles the 0b00010101 and similar text. I don't expect
Indent to be able to handle non-standard C and, instead, would like to
see an ignore regex option that I could use as shown below.

 

For example, the ignore regex option for this pattern could look like
-ign0b[01]+ where the text -ign specifies the ignore-regex option and
any following white space is treated as a regex. In this case, if I am
not mistaken, it specifies a string starting with the non-optional
characters 0 and b followed by any number of 1s and 0s.

 

2: Bug? The blank line before comment option adds a blank line at line 1
if there is a comment block at the head of a file.

 

Regards,

John Johnson

Relay Designer

IPC Resistors Inc. <blocked::http://www.ipc-resistors.com/> 

7615 Kimbel St. Unit 1 Mississauga, ON. L5S 1A8

PH. 905-673-1553

Cel. 416-319-5413

Fax 905-673-8472

 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]