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:
parent
d5ef8ed2b3
commit
35cd14df7a
|
@ -2,6 +2,6 @@
|
||||||
# name: if (...) { ... }
|
# name: if (...) { ... }
|
||||||
# key: if
|
# key: if
|
||||||
# --
|
# --
|
||||||
if (${1:condition}) ${2:{
|
if (${1:condition}) ${2:\{
|
||||||
$0
|
$0
|
||||||
}}
|
\}}
|
Loading…
Reference in New Issue