forked from bovine/vscode-tcl
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from sleutho/master
Adding Tcl snippets to the Visual Studio Code Extension
- Loading branch information
Showing
5 changed files
with
76 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"For Loop": { | ||
"prefix": "for", | ||
"body": [ | ||
"for \\{set ${index} 0\\} \\{ \\$${index} < ${length} \\} \\{ incr ${index} \\} \\{", | ||
"\t$0", | ||
"}" | ||
], | ||
"description": "For Loop" | ||
}, | ||
"Foreach Loop": { | ||
"prefix": "foreach", | ||
"body": [ | ||
"foreach ${var} ${list} \\{", | ||
"\t$0", | ||
"}" | ||
], | ||
"description": "Foreach Loop" | ||
}, | ||
"If Condition": { | ||
"prefix": "if", | ||
"body": [ | ||
"if \\{${var}\\} \\{", | ||
"\t$0", | ||
"}" | ||
], | ||
"description": "If Condition" | ||
}, | ||
"ElseIf Condition": { | ||
"prefix": "elseif", | ||
"body": [ | ||
"elseif \\{${var}\\} \\{", | ||
"\t$0", | ||
"}" | ||
], | ||
"description": "ElseIf Condition" | ||
}, | ||
"Else Block": { | ||
"prefix": "else", | ||
"body": [ | ||
"else \\{", | ||
"\t$0", | ||
"}" | ||
], | ||
"description": "Else Block" | ||
}, | ||
"Proc Block": { | ||
"prefix": "proc", | ||
"body": [ | ||
"proc ${name} \\{${args}\\} \\{", | ||
"\t$0", | ||
"}" | ||
], | ||
"description": "Proc Block" | ||
}, | ||
"While Lopp": { | ||
"prefix": "while", | ||
"body": [ | ||
"while \\{${var}\\} \\{", | ||
"\t$0", | ||
"}" | ||
], | ||
"description": "While Loop" | ||
} | ||
} |