File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 1313 '.js' : 'node' ,
1414 '.hs' : 'haskell' ,
1515 '.exs' : 'elixir' ,
16+ '.php' : 'php' ,
1617 }
1718
1819COMMENT_PREFIX = {
2324 'node' : '//' ,
2425 'haskell' : '--' ,
2526 'elixir' : '#' ,
27+ 'php' : '//'
2628 }
2729
2830
@@ -58,7 +60,8 @@ def parse(path):
5860 glob ('*.js' ) + \
5961 glob ('*.pl' ) + \
6062 glob ('*.hs' ) + \
61- glob ('*.exs' )
63+ glob ('*.exs' ) + \
64+ glob ('*.php' )
6265
6366 for f in files :
6467 ext_name = os .path .splitext (f )[1 ]
Original file line number Diff line number Diff line change 1414 'node' ,
1515 'golang' ,
1616 'elixir' ,
17- 'haskell' ]
17+ 'haskell' ,
18+ 'php' ]
1819
1920RUN_CMDS = {
2021 'ruby' : 'ruby' ,
2324 'perl' : 'perl' ,
2425 'golang' : 'go run' ,
2526 'elixir' : 'elixir' ,
26- 'haskell' : 'runhaskell' }
27+ 'haskell' : 'runhaskell' ,
28+ 'php' : 'php' }
2729
2830
2931def run_fun (path , func ):
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ // GET /test/result/php.json
4+
5+ echo json_encode (['hello ' => 'world ' ]);
You can’t perform that action at this time.
0 commit comments