From 57da162cdc20d76a3eb9d923ecd0724f9287be45 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 9 Jan 2018 19:58:58 +0000 Subject: [PATCH] lib/php/out/vim_hash.php --- lib/php/out.php | 4 ++-- lib/php/out/vim_hash.php | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 lib/php/out/vim_hash.php diff --git a/lib/php/out.php b/lib/php/out.php index f5309b13..4c899792 100644 --- a/lib/php/out.php +++ b/lib/php/out.php @@ -190,11 +190,11 @@ Class Out extends Nb { $o['rows'][] = $tmp_row; return true; - # row() or defined + # user function } elseif (self::type_call('row',$o,$row)) { $ret = true; - # Assume html/xml tag style + # html/xml tag style } elseif (isset($o['tag'])) { $ret = self::out_tag($o,$row); diff --git a/lib/php/out/vim_hash.php b/lib/php/out/vim_hash.php new file mode 100644 index 00000000..6947139b --- /dev/null +++ b/lib/php/out/vim_hash.php @@ -0,0 +1,8 @@ + self::p('sep',':'), 'eol' => "\n", 'quote' => "'", +'row' => function (&$o,&$row) { + debug('zaza'); + return true; +}, +]; +?> -- 2.47.3