Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #11 from stencila/feature/snippets
Browse files Browse the repository at this point in the history
feat(smd): adding snippets for elif and else blocks.
  • Loading branch information
nokome authored Apr 25, 2024
2 parents 5adbabd + 3ffad2a commit 8e49e88
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions syntaxes/smd/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@
"prefix": ["::: if"],
"body": ["::: if ${1:expression}", "", "$0", "", ":::"]
},
"Elif Block": {
"description": "Only show block content if the preceeding 'if' conditions are false and its own condition is true.",
"prefix": ["::: elif"],
"body": ["::: elif ${1:expression}", "", "$0", "", ":::"]
},
"Else Block": {
"description": "Only show block content if none of the preceeding conditions are true.",
"prefix": ["::: else"],
"body": ["::: else", "", "$0", "", ":::"]
},
"For Block": {
"description": "Repeat block content for each value of a variable in an expression.",
"prefix": ["::: for"],
Expand Down

0 comments on commit 8e49e88

Please sign in to comment.