File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -3283,28 +3283,26 @@ function! s:ExprParser.parse_curly_parts()
3283
3283
if c == # ' <' && self .reader.peekn (5 ) == ? ' <SID>'
3284
3284
let name = self .reader.getn (5 )
3285
3285
let node = s: Node (s: NODE_CURLYNAMEPART )
3286
- " Keep backword compatibility for the curly attribute
3287
- let node.curly = 0
3286
+ let node.curly = 0 " Keep backword compatibility for the curly attribute
3288
3287
let node.pos = pos
3289
3288
let node.value = name
3290
3289
call add (curly_parts, node)
3291
3290
endif
3292
3291
while 1
3293
- let pos = self .reader.getpos ()
3294
3292
let c = self .reader.peek ()
3295
3293
if s: isnamec (c )
3294
+ let pos = self .reader.getpos ()
3296
3295
let name = self .reader.read_name ()
3297
3296
let node = s: Node (s: NODE_CURLYNAMEPART )
3298
- " Keep backword compatibility for the curly attribute
3299
- let node.curly = 0
3297
+ let node.curly = 0 " Keep backword compatibility for the curly attribute
3300
3298
let node.pos = pos
3301
3299
let node.value = name
3302
3300
call add (curly_parts, node)
3303
3301
elseif c == # ' {'
3304
3302
call self .reader.get ()
3303
+ let pos = self .reader.getpos ()
3305
3304
let node = s: Node (s: NODE_CURLYNAMEEXPR )
3306
- " Keep backword compatibility for the curly attribute
3307
- let node.curly = 1
3305
+ let node.curly = 1 " Keep backword compatibility for the curly attribute
3308
3306
let node.pos = pos
3309
3307
let node.value = self .parse_expr1 ()
3310
3308
call add (curly_parts, node)
You can’t perform that action at this time.
0 commit comments