Skip to content

Commit

Permalink
Merge pull request #435 from viperproject/nklose/better-snippets
Browse files Browse the repository at this point in the history
Improve snippets
  • Loading branch information
rayman2000 authored Feb 16, 2024
2 parents f19820d + d665e61 commit 612c58a
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions client/snippets/viper.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,33 @@
"description": "Access permission"
},
"Precondition": {
"prefix": "precondition",
"prefix": "requires",
"body": [
"requires ${1:true)"
"requires ${1:true}"
],
"description": "Precondition"
},
"Postcondition": {
"prefix": "postcondition|ensures",
"prefix": "ensures",
"body": [
"ensures $(1:true)"
"ensures ${1:true}"
],
"description": "Postcondition"
},
"Decreases": {
"prefix": "decreases",
"body": [
"decreases"
],
"description": "Decreases clause"
},
"Invariant": {
"prefix": "invariant",
"body": [
"invariant ${1:true}"
],
"description": "Loop invariant"
},
"Method": {
"prefix": "method",
"body": [
Expand Down

0 comments on commit 612c58a

Please sign in to comment.