Skip to content

Commit 35cd14d

Browse files
committed
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.
1 parent d5ef8ed commit 35cd14d

File tree

1 file changed

+2
-2
lines changed
  • snippets/cc-mode

1 file changed

+2
-2
lines changed

snippets/cc-mode/if

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
# name: if (...) { ... }
33
# key: if
44
# --
5-
if (${1:condition}) ${2:{
5+
if (${1:condition}) ${2:\{
66
$0
7-
}}
7+
\}}

0 commit comments

Comments
 (0)