File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1938,7 +1938,7 @@ VimLParser.prototype.parse_lvalue = function() {
19381938 throw Err ( viml_printf ( "E461: Illegal variable name: %s" , node . value ) , node . pos ) ;
19391939 }
19401940 }
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 ) {
19421942 return node ;
19431943 }
19441944 throw Err ( "Invalid Expression" , node . pos ) ;
Original file line number Diff line number Diff line change @@ -1574,7 +1574,7 @@ def parse_lvalue(self):
15741574 if node .type == NODE_IDENTIFIER :
15751575 if not isvarname (node .value ):
15761576 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 :
15781578 return node
15791579 raise Exception (Err ("Invalid Expression" , node .pos ))
15801580
You can’t perform that action at this time.
0 commit comments