From 0d79a693108c38129624ab28f02d3a66b19fc047 Mon Sep 17 00:00:00 2001 From: Nikhil Grandhi Date: Wed, 29 Jul 2020 07:06:26 +0530 Subject: [PATCH] Fix leftover curly brace during expansion in various print snippets Right curly brace is leftover upon typing at first tabstop of print, println, eprint and eprintln. This commit will ensure that the right curly brace will also be replaced upon typing at the tabstop. --- snippets/rust-mode/eprint | 2 +- snippets/rust-mode/eprintln | 2 +- snippets/rust-mode/print | 2 +- snippets/rust-mode/println | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/snippets/rust-mode/eprint b/snippets/rust-mode/eprint index 2a9a2c9e9..a40a749ec 100644 --- a/snippets/rust-mode/eprint +++ b/snippets/rust-mode/eprint @@ -2,4 +2,4 @@ # name: eprint!("{}", value); # key: eprint # -- -eprint!("${1:{}}", $2); +eprint!("${1:{\}}", $2); diff --git a/snippets/rust-mode/eprintln b/snippets/rust-mode/eprintln index 4a8f4ecc7..0806251f0 100644 --- a/snippets/rust-mode/eprintln +++ b/snippets/rust-mode/eprintln @@ -2,4 +2,4 @@ # name: eprintln!("{}", value); # key: eprintln # -- -eprintln!("${1:{}}", $2); +eprintln!("${1:{\}}", $2); diff --git a/snippets/rust-mode/print b/snippets/rust-mode/print index 11ba7c800..403ffd95f 100644 --- a/snippets/rust-mode/print +++ b/snippets/rust-mode/print @@ -2,4 +2,4 @@ # name: print!("{}", value); # key: print # -- -print!("${1:{}}", $2); \ No newline at end of file +print!("${1:{\}}", $2); \ No newline at end of file diff --git a/snippets/rust-mode/println b/snippets/rust-mode/println index a53f8608c..9d35fc593 100644 --- a/snippets/rust-mode/println +++ b/snippets/rust-mode/println @@ -2,4 +2,4 @@ # name: println!("{}", value); # key: println # -- -println!("${1:{}}", $2); \ No newline at end of file +println!("${1:{\}}", $2); \ No newline at end of file