jonsmithers / vim-html-template-literals

Syntax highlighting for html template literals in javascript (as in lit-html and polymer 3)
MIT License
71 stars 10 forks source link

Indentation edge case tests #1

Closed jonsmithers closed 6 years ago

jonsmithers commented 6 years ago

It's pretty easy to find edge cases where auto-indentation is incorrect.

I bet it would be cool to introduce some vimscript tests. I'm aware that vader.vim exists and it can test indentation. That's probably the best way to go about finding and fixing edge cases.

jonsmithers commented 6 years ago

broken test case:

let x = () => {
    return html`
        <div>
    hi
</div>
    `;
}