api/vim: Add nvim_parse_expression function

This commit is contained in:
ZyX
2017-10-29 20:11:44 +03:00
parent 1be29dc5ac
commit 22d161a5dd
3 changed files with 70 additions and 3 deletions

View File

@@ -849,8 +849,7 @@ static inline void viml_pexpr_debug_print_token(
viml_pexpr_debug_print_token(pstate, tkn)
#endif
#ifndef NDEBUG
static const uint8_t node_maxchildren[] = {
const uint8_t node_maxchildren[] = {
[kExprNodeMissing] = 0,
[kExprNodeOpMissing] = 2,
[kExprNodeTernary] = 2,
@@ -890,7 +889,6 @@ static const uint8_t node_maxchildren[] = {
[kExprNodeOption] = 0,
[kExprNodeEnvironment] = 0,
};
#endif
/// Free memory occupied by AST
///