peitalin / vim-jsx-typescript

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

Enable syntax fold on multiline backtick strings #39

Open guyzmo opened 3 years ago

guyzmo commented 3 years ago

Hello, I've been using a lot multiline backtick strings and I'd like to enable folds on them.

I've been trying to set something like, adding fold to the backtick syntax:

syntax region tsxString fold contained start=+`+ end=+`+ contains=tsxEntity,@Spell display

But with no success yet. Though, I've never tweaked folds in a syntax before.