Skip to content

Warning on swapping array elements #4

@kaosf

Description

@kaosf

Sample file ruby_hl_lvar.vim-error-example.rb:

x = [10, 20]
x[0], x[1] = x[1], x[0]

Warning messages:

"ruby_hl_lvar.vim-error-example.rb" 2L, 37C
WARN: Unsupported ast item in handle_massign_lhs: [:aref_field, [:var_ref, [:@ident, "x", [2, 0]]], [:args_add_block, [[:@int, "0", [2, 2]]], false]]
WARN: Unsupported ast item in handle_massign_lhs: [:aref_field, [:var_ref, [:@ident, "x", [2, 6]]], [:args_add_block, [[:@int, "1", [2, 8]]], false]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions