0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 7.4.1154

Problem:    No support for JSON.
Solution:   Add jsonencode() and jsondecode().  Also add v:false, v:true,
            v:null and v:none.
This commit is contained in:
Bram Moolenaar
2016-01-23 19:46:28 +01:00
parent 6920c72d4d
commit 520e1e41f3
28 changed files with 863 additions and 34 deletions

View File

@@ -1032,6 +1032,11 @@ static VALUE vim_to_ruby(typval_T *tv)
}
}
}
}
else if (tv->v_type == VAR_SPECIAL)
{
if (tv->vval.v_number <= VVAL_TRUE)
result = INT2NUM(tv->vval.v_number);
} /* else return Qnil; */
return result;