From 7eecbbf1f3e6e4fd214da7da3e18e45be4faba45 Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Mon, 27 Jun 2016 10:55:30 +0200 Subject: [PATCH] [rust] remove rust snippets (see discussion in #6430) --- extensions/rust/OSSREADME.json | 2 +- extensions/rust/package.json | 4 -- extensions/rust/snippets/rust.json | 76 ------------------------------ 3 files changed, 1 insertion(+), 81 deletions(-) delete mode 100644 extensions/rust/snippets/rust.json diff --git a/extensions/rust/OSSREADME.json b/extensions/rust/OSSREADME.json index 2c15036c6ac..a2c230a174c 100644 --- a/extensions/rust/OSSREADME.json +++ b/extensions/rust/OSSREADME.json @@ -5,5 +5,5 @@ "version": "0.4.4", "license": "MIT", "repositoryURL": "https://github.com/zargony/atom-language-rust", - "description": "The files syntaxes/rust.json and snippets/rust.json were derived from the Atom package https://atom.io/packages/language-rust." + "description": "The files syntaxes/rust.json was derived from the Atom package https://atom.io/packages/language-rust." }] diff --git a/extensions/rust/package.json b/extensions/rust/package.json index 85c097fb97e..8f0d9ad516c 100644 --- a/extensions/rust/package.json +++ b/extensions/rust/package.json @@ -14,10 +14,6 @@ "language": "rust", "path": "./syntaxes/rust.json", "scopeName":"source.rust" - }], - "snippets": [{ - "language": "rust", - "path": "./snippets/rust.json" }] } } \ No newline at end of file diff --git a/extensions/rust/snippets/rust.json b/extensions/rust/snippets/rust.json deleted file mode 100644 index f7f839c2be6..00000000000 --- a/extensions/rust/snippets/rust.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - ".source.rust": { - "enum": { - "prefix": "enum", - "body": "enum ${1:TypeName} {\n\t$2\n}" - }, - "fn": { - "prefix": "fn", - "body": "fn ${1:function_name}($2) {\n\t$3\n}" - }, - "fnr": { - "prefix": "fnr", - "body": "fn ${1:function_name}($2) -> ${3:TypeName} {\n\t$4\n}" - }, - "for": { - "prefix": "for", - "body": "for ${1:variable} in ${2:iterator} {\n\t$3\n}" - }, - "if": { - "prefix": "if", - "body": "if ${1:expression} {\n\t$2\n}" - }, - "impl": { - "prefix": "impl", - "body": "impl ${1:TypeName} {\n\t$2\n}" - }, - "let": { - "prefix": "let", - "body": "let ${1:variable} = ${2:value};" - }, - "loop": { - "prefix": "loop", - "body": "loop {\n\t$1\n}" - }, - "macro": { - "prefix": "macro", - "body": "macro_rules! ${1:macro_name} {\n\t($2) => ($3);\n}" - }, - "main": { - "prefix": "main", - "body": "fn main() {\n\t$1\n}" - }, - "match": { - "prefix": "match", - "body": "match ${1:expression} {\n\t$2\n}" - }, - "static": { - "prefix": "static", - "body": "static ${1:CONSTANT}: ${2:TypeName} = ${3:value};" - }, - "struct": { - "prefix": "struct", - "body": "struct ${1:TypeName} {\n\t$2\n}" - }, - "test": { - "prefix": "test", - "body": "#[test]\nfn ${1:test_name}() {\n\t$2\n}" - }, - "testmod": { - "prefix": "testmod", - "body": "#[cfg(test)]\nmod test {\n\t#[test]\n\tfn ${1:test_name}() {\n\t\t$2\n\t}\n}" - }, - "trait": { - "prefix": "trait", - "body": "trait ${1:TypeName} {\n\t$2\n}" - }, - "type": { - "prefix": "type", - "body": "type ${1:TypeName} = ${2:TypeName};" - }, - "while": { - "prefix": "while", - "body": "while ${1:expression} {\n\t$2\n}" - } - } -}