ARudik / phc

Automatically exported from code.google.com/p/phc
0 stars 0 forks source link

Comments associated with "else" #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If an if-statement has a comment associated with the else part

if(..)
{

}
// do something else
else
{
  ..
}

that comment is associated with the first statement inside the else, instead:

if(..)
{
  ..
}
else
{
  // do something else
  ..
}

Original issue reported on code.google.com by edskodev...@gmail.com on 14 Apr 2007 at 3:53

GoogleCodeExporter commented 9 years ago

Original comment by paul.biggar on 17 Sep 2008 at 7:32