Skip to content

Commit a7c5322

Browse files
authored
Fixed cout template token
The first and the second token of the cout template are merged, which is annoying when inserting cout and then typing, the second token `<< \n\` will be removed. This fix separates the second token from the first, so after inserting cout template, the user will be typing directly into the body of the cout.
1 parent ab3c204 commit a7c5322

File tree

1 file changed

+1
-1
lines changed
  • snippets/c++-mode

1 file changed

+1
-1
lines changed

snippets/c++-mode/cout

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# --
66
`(progn (goto-char (point-min)) (unless (re-search-forward
77
"^using\\s-+namespace std;" nil 'no-errer) "std::"))
8-
`cout << $0${1: << "${2:\n}"};
8+
`cout << $0${1:} << "${2:\n}";

0 commit comments

Comments
 (0)