borela / naomi

Sublime Text enhanced syntax highlighting for JavaScript ES6/ES7/ES2015/ES2016/ES2017+, Babel, FlowType, React JSX, Styled Components, HTML5, SCSS3, PHP 7, phpDoc, PHPUnit, MQL4. Basic: Git config files.
Other
557 stars 20 forks source link

Multiline destructured props are not highlighted as props/arguments #218

Open acnebs opened 5 years ago

acnebs commented 5 years ago

When destructured props are split across multiple lines, they are not highlighted as props/arguments.

Works (highlights prop1, prop2, and prop3 as arguments:

const MyComponent = ({prop1, prop2, prop3}) => ()

Fails (does not highlight the props at all):

const MyComponent = ({
  prop1,
  prop2,
  prop3
}) => ()