bug-indent
[Top][All Lists]
Advanced

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

[Bug-indent] address@hidden: indent behaviour on "case A ... B:" lines]


From: Carlo Wood
Subject: [Bug-indent] address@hidden: indent behaviour on "case A ... B:" lines]
Date: Sun, 28 Oct 2001 14:29:59 +0100
User-agent: Mutt/1.2.5i

-- 
Carlo Wood <address@hidden>
--- Begin Message --- Subject: indent behaviour on "case A ... B:" lines Date: Sun, 28 Oct 2001 12:14:08 +0100 User-agent: Mutt/1.3.20i
indent, operating on code like:

    switch (b) {
    case 1 ... 5:
        return 1;
        break;
    }

eats two spaces in case construction giving "case 1...5:", which is AFAIK
not ANSI compatibile and (which is of greater importance for me) makes some
versions of gcc stop with syntax error.

Is it just my fault, or can I fix it by giving indent any options?
I use indent 2.2.6 with -kr option.

Sorry for disturbing and for my English,

Andrzej Oszer
-- 
  Andrzej Oszer (address@hidden)
     

--- End Message ---

reply via email to

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