mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 09:48:19 +00:00
viml/parser/expressions: Error out on multiple colons in a row
This commit is contained in:
@@ -1691,8 +1691,10 @@ viml_pexpr_parse_invalid_comma:
|
||||
SELECT_FIGURE_BRACE_TYPE(*eastnode_p, DictLiteral, Dict);
|
||||
break;
|
||||
} else if (eastnode_type == kExprNodeDictLiteral
|
||||
|| eastnode_type == kExprNodeComma) {
|
||||
|| eastnode_type == kExprNodeSubscript) {
|
||||
break;
|
||||
} else if (eastnode_type == kExprNodeColon) {
|
||||
goto viml_pexpr_parse_invalid_colon;
|
||||
} else if (eastnode_lvl >= kEOpLvlTernaryValue) {
|
||||
// Do nothing
|
||||
} else if (eastnode_lvl > kEOpLvlComma) {
|
||||
|
Reference in New Issue
Block a user