@@ -17,15 +17,15 @@ snippet i
1717 ${2}
1818 }
1919snippet t.
20- $this->${1}
20+ \ $ this->${1}
2121snippet f
22- function ${1: foo } (${2: array }${3: $bar } )
22+ function ${1: foo } (${2: array }${3: \ $ bar } )
2323 {
2424 ${4}
2525 }
2626# method
2727snippet m
28- ${1: abstract }${2: protected }${3: static } function ${4: foo } (${5: array }${6: $bar } )
28+ ${1: abstract }${2: protected }${3: static } function ${4: foo } (${5: array }${6: \ $ bar } )
2929 {
3030 ${7}
3131 }
@@ -34,32 +34,32 @@ snippet sm
3434 /**
3535 * Sets the value of ${1: foo }
3636 *
37- * @param ${2: $1 } $$1 ${3: description }
37+ * @param ${2: \ $ 1 } $\ $ 1 ${3: description }
3838 *
3939 * @return ${4}
4040 */
41- ${5: public } function set${6: $2 } (${7: $2 } $$1 )
41+ ${5: public } function set${6: \ $ 2 } (${7: \ $ 2 } $\ $ 1)
4242 {
43- $this->${8: $1 } = $$1 ;
44- return $this;
43+ \ $ this->${8: \ $ 1 } = $\ $ 1;
44+ return \ $ this;
4545 }${9}
4646# getter method
4747snippet gm
4848 /**
4949 * Gets the value of ${1: foo }
5050 *
51- * @return ${2: $1 }
51+ * @return ${2: \ $ 1 }
5252 */
53- ${3: public } function get${4: $2 } ()
53+ ${3: public } function get${4: \ $ 2 } ()
5454 {
55- return $this->${5: $1 } ;
55+ return \ $ this->${5: \ $ 1 } ;
5656 }${6}
5757# setter
5858snippet $s
59- ${1: $foo } ->set${2: Bar } (${3} );
59+ ${1: \ $ foo } ->set${2: Bar } (${3} );
6060# getter
6161snippet $g
62- ${1: $foo } ->get${2: Bar } ();
62+ ${1: \ $ foo } ->get${2: Bar } ();
6363
6464# Tertiary conditional
6565snippet =?:
@@ -68,21 +68,21 @@ snippet ?:
6868 ${1: true } ? ${2: a } : ${3}
6969
7070snippet C
71- $_COOKIE['${1: variable } ']${2}
71+ \ $ _COOKIE['${1: variable } ']${2}
7272snippet E
73- $_ENV['${1: variable } ']${2}
73+ \ $ _ENV['${1: variable } ']${2}
7474snippet F
75- $_FILES['${1: variable } ']${2}
75+ \ $ _FILES['${1: variable } ']${2}
7676snippet G
77- $_GET['${1: variable } ']${2}
77+ \ $ _GET['${1: variable } ']${2}
7878snippet P
79- $_POST['${1: variable } ']${2}
79+ \ $ _POST['${1: variable } ']${2}
8080snippet R
81- $_REQUEST['${1: variable } ']${2}
81+ \ $ _REQUEST['${1: variable } ']${2}
8282snippet S
83- $_SERVER['${1: variable } ']${2}
83+ \ $ _SERVER['${1: variable } ']${2}
8484snippet SS
85- $_SESSION['${1: variable } ']${2}
85+ \ $ _SESSION['${1: variable } ']${2}
8686
8787# the following are old ones
8888snippet inc
@@ -134,7 +134,7 @@ snippet doc_c
134134 ${1: } class ${2: }
135135 {
136136 ${7}
137- } // END $1 class $2
137+ } // END \ $ 1class \ $ 2
138138# Constant Definition - post doc
139139snippet doc_dp
140140 /**
@@ -180,8 +180,8 @@ snippet doc_h
180180 * ${1}
181181 *
182182 * @author ${2: `g:snips_author` }
183- * @version ${3: $Id$ }
184- * @copyright ${4: $2 } , `strftime (' %d %B, %Y' ) `
183+ * @version ${3: \ $ Id$ }
184+ * @copyright ${4: \ $ 2 } , `strftime (' %d %B, %Y' ) `
185185 * @package ${5: default }
186186 */
187187
@@ -262,7 +262,7 @@ snippet case
262262 ${2: // code... }
263263 break;${3}
264264snippet for
265- for ($${2: i } = 0; $$2 < ${1: count } ; $$2 ${3: ++ } ) {
265+ for ($${2: i } = 0; $\ $ 2 < ${1: count } ; $\ $ 2${3: ++ } ) {
266266 ${4: // code... }
267267 }
268268snippet foreach
@@ -279,11 +279,11 @@ snippet array
279279snippet try
280280 try {
281281 ${2}
282- } catch (${1: Exception } $e) {
282+ } catch (${1: Exception } \ $ e) {
283283 }
284284# lambda with closure
285285snippet lambda
286- ${1: static } function (${2: args } ) use (${3: &$x, $y /*put vars in scope (closure) */ } ) {
286+ ${1: static } function (${2: args } ) use (${3: &\ $ x, \ $ y /*put vars in scope (closure) */ } ) {
287287 ${4}
288288 };
289289# pre_dump();
@@ -305,24 +305,24 @@ snippet gs
305305 /**
306306 * Gets the value of ${1: foo }
307307 *
308- * @return ${2: $1 }
308+ * @return ${2: \ $ 1 }
309309 */
310- public function get${3: $2 } ()
310+ public function get${3: \ $ 2 } ()
311311 {
312- return $this->${4: $1 } ;
312+ return \ $ this->${4: \ $ 1 } ;
313313 }
314314
315315 /**
316- * Sets the value of $1
316+ * Sets the value of \ $ 1
317317 *
318- * @param $2 $$1 ${5: description }
318+ * @param \ $ 2 $\ $ 1 ${5: description }
319319 *
320320 * @return ${6}
321321 */
322- public function set$3 (${7: $2 } $$1 )
322+ public function set\ $ 3(${7: \ $ 2 } $\ $ 1)
323323 {
324- $this->$4 = $$1 ;
325- return $this;
324+ \ $ this->\ $ 4 = $\ $ 1;
325+ return \ $ this;
326326 }${8}
327327# anotation, get, and set, useful for doctrine
328328snippet ags
@@ -333,15 +333,15 @@ snippet ags
333333 */
334334 ${2: protected } $${3: foo } ;
335335
336- public function get${4: $3 } ()
336+ public function get${4: \ $ 3 } ()
337337 {
338- return $this->$3 ;
338+ return \ $ this->\ $ 3;
339339 }
340340
341- public function set$4 (${5: $4 } $${6: $3 } )
341+ public function set\ $ 4(${5: \ $ 4 } $${6: \ $ 3 } )
342342 {
343- $this->$3 = $$6 ;
344- return $this;
343+ \ $ this->\ $ 3 = $\ $ 6;
344+ return \ $ this;
345345 }
346346snippet rett
347347 return true;
0 commit comments