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.
This commit is contained in:
Nikhil Grandhi 2020-07-29 07:06:26 +05:30 committed by Nikhil Grandhi
parent d5ef8ed2b3
commit 0d79a69310
4 changed files with 4 additions and 4 deletions

View File

@ -2,4 +2,4 @@
# name: eprint!("{}", value);
# key: eprint
# --
eprint!("${1:{}}", $2);
eprint!("${1:{\}}", $2);

View File

@ -2,4 +2,4 @@
# name: eprintln!("{}", value);
# key: eprintln
# --
eprintln!("${1:{}}", $2);
eprintln!("${1:{\}}", $2);

View File

@ -2,4 +2,4 @@
# name: print!("{}", value);
# key: print
# --
print!("${1:{}}", $2);
print!("${1:{\}}", $2);

View File

@ -2,4 +2,4 @@
# name: println!("{}", value);
# key: println
# --
println!("${1:{}}", $2);
println!("${1:{\}}", $2);