peitalin / vim-jsx-typescript

React JSX syntax highlighting for vim and Typescript
The Unlicense
306 stars 29 forks source link

Add syntax match for tsxComponentName #30

Closed pcgilday closed 4 years ago

pcgilday commented 4 years ago

Adds new tsxComponentName option which will detect react components using component naming conventions.

It's useful to have react components highlighted differently from html elements. I used the syntax matching already used in vim-jsx-pretty and tested it locally.

Please let me know if this is something you would consider merging and/or if there are any updates that would make it more useful.

Thank you so much for your work on this plugin!

peitalin commented 4 years ago

Very nice