-
-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong indent rule for tag <transition> #104
Comments
XML indentation sounds like a good idea since that would also correctly indent self-closing tags. |
Unfortunately vim's XML indent script looks at the syntax group of the tags, so it doesn't work with HTML tags. |
You can use the html_indent_inctags variable to get the indentation of <transition> (or any other custom tag) to work correctly. One way to do this is to add this to your .vimrc: |
We could add |
Reproduction:
Start with a new buffer, set ft=vue, insert following:
Select and type ==
Expected behaviour:
Actual behaviour:
Description:
"<transition>" is invalid in html5, Maybe need a option to add custom tagnames in vue, or use xml indent rule instead, as vue documentation allow that use PascalCase in single file components.
The text was updated successfully, but these errors were encountered: