File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1938,7 +1938,7 @@ VimLParser.prototype.parse_lvalue = function() {
1938
1938
throw Err ( viml_printf ( "E461: Illegal variable name: %s" , node . value ) , node . pos ) ;
1939
1939
}
1940
1940
}
1941
- if ( node . type == NODE_IDENTIFIER || node . type == NODE_CURLYNAME || node . type == NODE_SUBSCRIPT || node . type == NODE_DOT || node . type == NODE_OPTION || node . type == NODE_ENV || node . type == NODE_REG ) {
1941
+ if ( node . type == NODE_IDENTIFIER || node . type == NODE_CURLYNAME || node . type == NODE_SUBSCRIPT || node . type == NODE_SLICE || node . type == NODE_DOT || node . type == NODE_OPTION || node . type == NODE_ENV || node . type == NODE_REG ) {
1942
1942
return node ;
1943
1943
}
1944
1944
throw Err ( "Invalid Expression" , node . pos ) ;
Original file line number Diff line number Diff line change @@ -1574,7 +1574,7 @@ def parse_lvalue(self):
1574
1574
if node .type == NODE_IDENTIFIER :
1575
1575
if not isvarname (node .value ):
1576
1576
raise Exception (Err (viml_printf ("E461: Illegal variable name: %s" , node .value ), node .pos ))
1577
- if node .type == NODE_IDENTIFIER or node .type == NODE_CURLYNAME or node .type == NODE_SUBSCRIPT or node .type == NODE_DOT or node .type == NODE_OPTION or node .type == NODE_ENV or node .type == NODE_REG :
1577
+ if node .type == NODE_IDENTIFIER or node .type == NODE_CURLYNAME or node .type == NODE_SUBSCRIPT or node .type == NODE_SLICE or node . type == NODE_DOT or node .type == NODE_OPTION or node .type == NODE_ENV or node .type == NODE_REG :
1578
1578
return node
1579
1579
raise Exception (Err ("Invalid Expression" , node .pos ))
1580
1580
You can’t perform that action at this time.
0 commit comments