Skip to content
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

format bugs: not supporting stylus in <style> #78

Closed
beeplin opened this issue Mar 4, 2017 · 5 comments
Closed

format bugs: not supporting stylus in <style> #78

beeplin opened this issue Mar 4, 2017 · 5 comments

Comments

@beeplin
Copy link

beeplin commented Mar 4, 2017

image

stylus content without {}, : and ; breaks into this after formatting:

image

@octref
Copy link
Member

octref commented Mar 4, 2017

Similar to #68. There is no formatter for stylus, jade or sass yet. I'll disable formatting for all these regions.

@beeplin
Copy link
Author

beeplin commented Mar 5, 2017

Another thought:

Anyway it's better to have a formatter than none. Now vetur just format stylus as if it is common css. If the stylus part has {}, : and ; like css, it is formatted perfectly. It doesn't work only if we omit {}, : or ;.

So how about this: Keep it what it behaves now, and in README just mention this trick:?

@beeplin
Copy link
Author

beeplin commented Mar 5, 2017

coz in most cases we use stylus not because it can save some key presses for {} etc., but because we need to define and use stylus variables.

@octref
Copy link
Member

octref commented Mar 5, 2017

I'll just disable it as most people don't write with {} and ; in stylus.

@octref
Copy link
Member

octref commented Mar 6, 2017

Closing in favor of #82.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants