init tool
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
Monarch definition & snippets:
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 David Owens II
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
TextMate grammar:
|
||||
|
||||
Copyright (c) 2014 Darin Morrison
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -0,0 +1 @@
|
||||
{"comments":{"lineComment":"//","blockComment":["/*","*/"]},"brackets":[["{","}"],["[","]"],["(",")"]],"autoClosingPairs":[["{","}"],["[","]"],["(",")"],{"open":"\"","close":"\"","notIn":["string"]},{"open":"'","close":"'","notIn":["string"]},{"open":"`","close":"`","notIn":["string"]}],"surroundingPairs":[["{","}"],["[","]"],["(",")"],["\"","\""],["'","'"],["`","`"]]}
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"swift","displayName":"%displayName%","description":"%description%","version":"1.0.0","publisher":"vscode","license":"MIT","engines":{"vscode":"*"},"scripts":{"update-grammar":"node ../node_modules/vscode-grammar-updater/bin textmate/swift.tmbundle Syntaxes/Swift.tmLanguage ./syntaxes/swift.tmLanguage.json"},"contributes":{"languages":[{"id":"swift","aliases":["Swift","swift"],"extensions":[".swift"],"configuration":"./language-configuration.json"}],"grammars":[{"language":"swift","scopeName":"source.swift","path":"./syntaxes/swift.tmLanguage.json"}],"snippets":[{"language":"swift","path":"./snippets/swift.code-snippets"}]},"repository":{"type":"git","url":"https://github.com/microsoft/vscode.git"}}
|
||||
@@ -0,0 +1 @@
|
||||
{"displayName":"Swift Language Basics","description":"Provides snippets, syntax highlighting and bracket matching in Swift files."}
|
||||
@@ -0,0 +1 @@
|
||||
{"print":{"prefix":"print","body":"print(\"$1\")\n$0","description":"print(\"...\")"},"print value":{"prefix":"printv","body":"print(\"\\($1)\")\n$0","description":"print(\"\\(...)\")"},"while":{"prefix":"while","body":["while ${1:condition} {","\t$0","}"],"description":"while statement"},"repeat-while":{"prefix":"repeat","body":["repeat {","\t$0","} while ${1:condition}"],"description":"repeat-while statement"},"for":{"prefix":"for","body":["for ${1:item} in ${2:collection} {","\t$0","}"],"description":"for-in statement"},"if":{"prefix":"if","body":["if ${1:condition} {","\t$0","}"],"description":"if statement"},"else if":{"prefix":"elif","body":["else if ${1:condition} {","\t$0","}"],"description":"else clause with a nested if statement"},"else":{"prefix":"else","body":["else {","\t$0","}"],"description":"else clause"},"if let":{"prefix":"iflet","body":["if let ${1:value} = ${2:optional} {","\t$0","}"],"description":"if statement with optional binding"},"guard":{"prefix":"guard","body":["guard ${1:condition} else {","\t$0","}"],"description":"guard statement"},"guard let":{"prefix":"guardlet","body":["guard let ${1:value} = ${2:optional} else {","\t$0","}"],"description":"guard statement with optional binding"},"switch":{"prefix":"switch","body":["switch ${1:value} {","case ${2:pattern}:","\t$0","default:","\t","}"],"description":"switch statement"},"do":{"prefix":"do","body":["do {","\t$0","} catch ${1:error} {","\t$2","}"],"description":"do statement"},"func":{"prefix":"func","body":["func ${1:name}(${2:parameters}) -> ${3:Type} {","\t$0","}"],"description":"function declaration"},"struct":{"prefix":"struct","body":["struct ${1:Name} {","","\t$0","}"],"description":"struct declaration"},"enum":{"prefix":"enum","body":["enum ${1:Name} {","","\tcase $0","}"],"description":"enum declaration"},"class":{"prefix":"class","body":["class ${1:Name} {","","\t$0","}"],"description":"class declaration"},"protocol":{"prefix":"protocol","body":["protocol ${1:Name} {","","\t$0","}"],"description":"protocol declaration"},"extension":{"prefix":"extension","body":["extension ${1:Type} {","","\t$0","}"],"description":"extension declaration"}}
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user