evanleck / vim-svelte

Vim syntax highlighting and indentation for Svelte 3 components.
BSD 3-Clause "New" or "Revised" License
319 stars 11 forks source link

Tests #2

Closed imbolc closed 5 years ago

imbolc commented 5 years ago

It's painful enough to have some tests :)

evanleck commented 5 years ago

Very cool way to test this! I'm going to make some changes but I'll get your feedback before I merge it. For one thing, lowercase custom elements like <foo> aren't valid from what I can tell on the docs.

A lowercase tag, like

, denotes a regular HTML element. A capitalised tag, such as or , indicates a component.

imbolc commented 5 years ago

Thanks, I didn't notice this in docs :) May there be some edge cases we can't predict now, as using web components inside of svelte once or something?

evanleck commented 5 years ago

Yeah, there definitely could be something we're not thinking of, but I'd rather not try to anticipate too much until there's a practical example. I'm going to close this and merge #3 which includes these same changes. Thanks again!