# Parameter object destructuring not recognized by syntax highlighter

**URL:** <https://talk.observablehq.com/t/parameter-object-destructuring-not-recognized-by-syntax-highlighter/1307>\
**Category:** Feedback\
**Created:** [October 10, 2018, 10:29pm UTC](https://talk.observablehq.com/t/parameter-object-destructuring-not-recognized-by-syntax-highlighter/1307 "2018-10-10T22:29:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Berzeg](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/berzeg/32/1124_2.png) [@Berzeg](https://talk.observablehq.com/u/Berzeg)\
**Post date:** [October 10, 2018, 10:29pm UTC](https://talk.observablehq.com/t/parameter-object-destructuring-not-recognized-by-syntax-highlighter/1307/1 "2018-10-10T22:29:45Z")

</div>

![i_cant_live_like_this](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/8/8ca7c45f8bed239feb8d2809e4c2c6cd51497009.png)

Look above. Now, look at me. Now, look back above. Now, look back at me.

The variables defined in the destructured object parameter are not recognized by the syntax highlighter. They appear as faded, which implies the variable has not been in previous context. This is false. The variable `selectedTopic` should be blue.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/tom/32/2262_2.png) [@tom](https://talk.observablehq.com/u/tom)\
**Post date:** [October 10, 2018, 10:33pm UTC](https://talk.observablehq.com/t/parameter-object-destructuring-not-recognized-by-syntax-highlighter/1307/2 "2018-10-10T22:33:38Z")

</div>

Split this topic on October 10, 2018, 10:33pm UTC

A post was merged into an existing topic: [default values + argument unpacking causes observable syntax highlighter to slightly break](https://talk.observablehq.com/t/default-values-argument-unpacking-causes-observable-syntax-highlighter-to-slightly-break/1153)

---

<div class="post-metadata">

**Author:** ![tom](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/tom/32/2262_2.png) [@tom](https://talk.observablehq.com/u/tom)\
**Post date:** [October 10, 2018, 10:33pm UTC](https://talk.observablehq.com/t/parameter-object-destructuring-not-recognized-by-syntax-highlighter/1307/3 "2018-10-10T22:33:38Z")

</div>

Closed on October 10, 2018, 10:33pm UTC


