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
Description
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
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
Steps to Reproduce
- Open a javascript file
- Write a key-value pair with a value using array optional chaining
- Add another key-value pair before and after the key-value pair with array optional chaining
- 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
Labels
No labels