cc-mode/if: escape backslashes

Escaping lets the user choose between writing an unbraced `if` by
pressing C-d, or continue with a braced `if` by pressing TAB. The
current behavior when pressing C-d at this point is that there is an
unbalanced right brace remaining.
This commit is contained in:
Brian Leung 2020-07-22 18:13:24 -07:00
parent d5ef8ed2b3
commit 35cd14df7a
1 changed files with 2 additions and 2 deletions

View File

@ -2,6 +2,6 @@
# name: if (...) { ... }
# key: if
# --
if (${1:condition}) ${2:{
if (${1:condition}) ${2:\{
$0
}}
\}}