Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Array with optional chanining #688

Closed
@cocoliliace

Description

@cocoliliace

Prerequisites

Description

Array access with optional chaining is not recognized as a value in objects. Optional chaining with array outside of an object works, but when used directly inside an object as a value, the next key isn't highlighted. If it is the first key-value pair of the object, both the key following it and its own key would not be highlighted

atom language-javascript bug for array optional chaining

Steps to Reproduce

  1. Open a javascript file
  2. Write a key-value pair with a value using array optional chaining
  3. Add another key-value pair before and after the key-value pair with array optional chaining
  4. Delete the key-value pair before the one with array optional chaining

Expected behavior:

The keys of the object should be highlighted in both step 3 and 4

Actual behavior:

The key after the one with array optional chaining isn't highlighted in step 3
Both the key after and the key of the one with array optional chaining aren't highlighted in step 4

Reproduces how often:

Always

Versions

Atom: 1.53.0
OS: macOS Catalina Version 0.15.6 (19G73)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions