Skip to content

Commit

Permalink
Fix inhale exhale exp
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzV committed Mar 1, 2025
1 parent 2ad28a0 commit 8a32a03
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/viper/silver/parser/ParseAstKeyword.scala
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ object PSymOp {
type Dot = PReserved[Dot.type]
case object DotDot extends PSym("..") with PSymbolOp
type DotDot = PReserved[DotDot.type]
case object Comma extends PSym(",") with PSymbolOp
case object Comma extends PSym(",") with PSymbolOp with RightSpace
type Comma = PReserved[Comma.type]
case object RParen extends PSym(")") with PSymbolOp
type RParen = PReserved[RParen.type]
Expand Down
5 changes: 4 additions & 1 deletion src/test/resources/reformatter/methods.vpr
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,7 @@ method empty_assign() {
*/

swap(a, pivotIndex, right)
}
}

method with_inhale_exhale(lock: Ref)
ensures [true,forperm r: Ref [r.held] :: false]
5 changes: 4 additions & 1 deletion src/test/resources/reformatter/methods_expected.vpr
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,7 @@ method empty_assign() {
*/

swap(a, pivotIndex, right)
}
}

method with_inhale_exhale(lock: Ref)
ensures [true, forperm r: Ref [r.held] :: false]

0 comments on commit 8a32a03

Please sign in to comment.