-
Notifications
You must be signed in to change notification settings - Fork 231
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
Support explicit <script> type #152
Comments
I'm not sure I understand. Can you give me some more information for why you need the Vue components aren't "strict" html even though they're modelled similarly, and some tags might not behave the same. We rely on the existing HTML extension to provide a large amount of functionality, and this might be one a quirk as a result of that. Since this isn't a problem with the extension itself, I don't know if we can do this without causing unforseen side effects for other users. Our goal is to adhere only to the vue component spec. Your best bet might be to add the feature yourself and maintain a separate fork for your organisation since it's required for internal guidelines. At this time, I'm afraid I will have to close the issue, but please feel free to provide any additional information and re-open if there's any incompatibility with the official vuejs documentation. |
Digging through other issues here to back my case up, it appears #3 (albeit much older) is related, as well as a host of other VueJS Syntax Highlighting for ES6 issues in several other editors. The problem is, for instance, in sublime if i have the I'm not sure where to go with this. Most other editors support the While i respect the desire not to open this codebase up to anything outside the scope of the vue component spec, it seems strange to me that a perfectly symantic attribute that would otherwise simply be ignored by Vue could break the functionality of this plugin outright for (potentially) many users. This seems kind of fragile. |
I can understand your concern. Lemme re-open this and take a look over the weekend if it would be an easy fix to ignore the |
I'm getting broken syntax highlighting on vue component files which use script attribute of I'm trying to establish whether to ask the author / do a pull request to remove the |
Our existing code standards require the use of explicitly specifying the
type
attribute on markup tags. As such:<script type="text/babel">
breaks syntax highlighting for single-file vue components. Removing the attribute:
<script>
fixes it again. Is this something that can be supported for this plugin? I've seen other similar issues with plugins on other IDEs/editors for vue component highlighting as well.
The text was updated successfully, but these errors were encountered: