team-worthwhile / worthwhile

PSE am KIT 2011/12: Programmverifikation (Team 2)
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Comments after _ensures are colored after proof #84

Closed leonhandreke closed 12 years ago

leonhandreke commented 12 years ago

When trying to prove the following program, the _ensures is colored in green (as it should). However, // troll comment is also colored. This shouldn't happen.

function Integer noop(Integer a)
_ensures _return = a
// troll comment
{
    return a
}
jspam commented 12 years ago

Even better, try to prove the following program:

function Integer noop(Integer a)
/* troll */  _ensures _return = a
{
    return a
}

The postcondition and the following text up to return are marked green.