diff options
author | ZyX <kp-pav@yandex.ru> | 2017-10-09 02:55:56 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-10-15 19:13:52 +0300 |
commit | fa3cfc0dd54df125a1dbabccda47a5f45dc483ae (patch) | |
tree | be4c707c2bdfda3fab439d48b5ed9a5a93eb4856 /src/nvim/viml/parser/parser.h | |
parent | af38cea133f5ebb67208cedd289e408cd1dad15a (diff) | |
download | rneovim-fa3cfc0dd54df125a1dbabccda47a5f45dc483ae.tar.gz rneovim-fa3cfc0dd54df125a1dbabccda47a5f45dc483ae.tar.bz2 rneovim-fa3cfc0dd54df125a1dbabccda47a5f45dc483ae.zip |
viml/parser/expressions: Finish parser
Note: formatc.lua was unable to swallow some newer additions to ExprASTNodeType
(specifically `kExprNodeOr = '|'` and probably something else), so all `= …`
were dropped: in any case they only were there in order to not bother updating
viml_pexpr_debug_print_ast_node and since it is now known all nodes which will
be present it is not much of an issue.
Diffstat (limited to 'src/nvim/viml/parser/parser.h')
-rw-r--r-- | src/nvim/viml/parser/parser.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/viml/parser/parser.h b/src/nvim/viml/parser/parser.h index a17edac403..10ced57977 100644 --- a/src/nvim/viml/parser/parser.h +++ b/src/nvim/viml/parser/parser.h @@ -173,7 +173,7 @@ static inline void viml_parser_highlight(ParserState *const pstate, const size_t len, const char *const group) { - if (pstate->colors == NULL) { + if (pstate->colors == NULL || len == 0) { return; } // TODO(ZyX-I): May do some assert() sanitizing here. |