This website requires JavaScript.
Explore
Help
Register
Sign In
jflack
/
yasnippet-snippets
Watch
1
Star
0
Fork
You've already forked yasnippet-snippets
0
Code
Issues
Pull requests
Releases
Wiki
Activity
master
yasnippet-snippets
/
snippets
/
rust-mode
/
eprint
6 lines
98 B
Plaintext
Raw
Permalink
Normal View
History
Unescape
Escape
Added Rust snippets "eprint" and "eprintln" (#243) eprint/eprintln snippets behave like print/prinln. * eprintln: Macro for printing to the standard error, with a newline. * eprint: Macro for printing to the standard error.
2018-01-05 11:07:07 +01:00
# -*- mode: snippet -*-
# name: eprint!("{}", value);
# key: eprint
# --
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.
2020-07-29 03:36:26 +02:00
eprint!("${1:{\}}", $2);
Reference in a new issue
Copy permalink