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

"John Johnson" <[email protected]>
Newsgroups gmane.comp.gnu.indent.bugs
Message-ID <6AA1C77F3C86994899CE438B3A794CB75723E3@postoffice.ipc-resistors.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.