Skip to content

Commit

Permalink
Improved PHP code completion
Browse files Browse the repository at this point in the history
  • Loading branch information
blach committed May 26, 2012
1 parent 1bcdfa9 commit fe52eaa
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions CodeCompletion/php.json
Original file line number Diff line number Diff line change
Expand Up @@ -4151,7 +4151,7 @@
"const",

{ "string": "interface", "append": " ${1:InterfaceName} {\n\t$0\n}" },
{ "string": "function", "append": " ${1:FunctionName}($2) {\n\t$0\n}" },
{ "string": "function", "append": " ${1:function_name}($2) {\n\t$0\n}" },

"old_function",
"var",
Expand All @@ -4175,7 +4175,7 @@
{ "string": "do", "append": " {\n\t$0\n} while ($1);" },
{ "string": "else", "append": " {\n\t$0\n}" },
{ "string": "elseif", "append": " ($1) {\n\t$0\n}" },
{ "string": "for", "append": " (${1:$i = 0}; $i ${3:< count}; ${4:$i++}) {\n\t$0\n}" },
{ "string": "for", "append": " (${1:\\$i = 0}; \\$i ${3:< count}; ${4:\\$i++}) {\n\t$0\n}" },
{ "string": "foreach", "append": " (${1:\\$array} as ${2:${3:\\$key} => }${4:\\$value}) {\n\t$0\n}" },
{ "string": "goto", "append": " ${1:label};" },
{ "string": "if", "append": " ($1) {\n\t$0\n}" },
Expand Down Expand Up @@ -4205,7 +4205,13 @@

// operators
"new",
"clone"
"clone",

"true",
"false",
"TRUE",
"FALSE",
"NULL"
]
},

Expand Down

0 comments on commit fe52eaa

Please sign in to comment.