INDENT: Preprocessor directives.

David Balaguer <[email protected]>
Newsgroups gmane.comp.gnu.indent.bugs
Message-ID <[email protected]>
Hello.

I'm using Indent at first time and I'm trying to keep a preprocessor 
directives style.
Preprocessor conditional statements can be indented by to given number 
of spaces, but I want to know if there is any option which keeps the # 
symbol attached to the next word.
I mean, indented code looks like:

#if X
#   if Y
#      define Z 1
#   else
#      define Z 0
#   endif
#endif

But I'm trying to obtain:

#if X
  #if Y
     #define Z 1
  #else
     #define Z 0
  #endif
#endif

¿Is there any way to do this?

Thank you so much for your help.

David Balaguer.
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.