Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Commit

Permalink
Fix: remove extra backslashes included in snippets (#44)
Browse files Browse the repository at this point in the history
Fix: remove extra backslashes included in snippets
This commit removes an extra backslash being included with these snippets
 - panic
 - println
 - format
 - format_args
It seems braces are already escaped automatically.
Fixed #43
  • Loading branch information
benjamin kagia authored and KalitaAlexey committed Jan 17, 2017
1 parent 0c85d34 commit b7e3ac2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions snippets/rust.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,14 @@
"format": {
"prefix": "format",
"body": [
"format!(\"${1:\\{${2::?}\\}}\")"
"format!(\"${1}\")"
],
"description": "format!(…)"
},
"format_args": {
"prefix": "format_args",
"body": [
"format_args!(\"${1:\\{${2::?}\\}}\")"
"format_args!(\"${1}\")"
],
"description": "format_args!(…)"
},
Expand Down Expand Up @@ -184,21 +184,21 @@
"panic": {
"prefix": "panic",
"body": [
"panic!(\"${1:\\{${2::?}\\}}\");"
"panic!(\"${1}\");"
],
"description": "panic!(…);"
},
"print": {
"prefix": "print",
"body": [
"print!(\"${1:\\{${2::?}\\}}\");"
"print!(\"${1}\");"
],
"description": "print!(…);"
},
"println": {
"prefix": "println",
"body": [
"println!(\"${1:\\{${2::?}\\}}\");"
"println!(\"${1}\");"
],
"description": "println!(…);"
},
Expand Down Expand Up @@ -247,14 +247,14 @@
"write": {
"prefix": "write",
"body": [
"write!(${1}, \"${2:\\{${3::?}\\}}\")"
"write!(${1}, \"${2}\")"
],
"description": "write!(…)"
},
"writeln": {
"prefix": "writeln",
"body": [
"writeln!(${1}, \"${2:\\{${3::?}\\}}\")"
"writeln!(${1}, \"${2}\")"
],
"description": "writeln!(…, …)"
},
Expand Down

0 comments on commit b7e3ac2

Please sign in to comment.