-
Notifications
You must be signed in to change notification settings - Fork 60
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
First line in <script> tags indented differently #50
Comments
Hello, Thanks for your report. I've experienced this issue as well, and have a fix in mind. I'll try to get it pushed up as soon as I have a free moment. |
Sometimes, modes rely on functions like (point-min) or overstep their region when attempting to indent a line. This can cause issues like AdamNiederer/vue-mode#50 This function narrows the buffer before indenting, preventing any issues which might arise from reliance on having one's own buffer. This doesn't change any defaults, but I figured some other mmm-mode derivatives could make use of this function.
Sent a patch: dgutov/mmm-mode#74 After this is accepted, I'll need to add a line in |
Regardless of whether that patch is accepted, you can include it in |
Apologies for the extremely long wait; I've decided to abandon merging the utility functions upstream and have just added them locally. This should be fixed now. |
Why is mine still wrong for first line under script?
|
Hey,
I'm getting this behaviour where the first line within the
<script>
tags of any .vue file with vue-mode[JavaScript] enabled is indenting the first line with one more indent than the rest of the lines:indent-line-function
ismmm-indent-line
but if I manually executejs-indent-line
the behaviour is the same.The text was updated successfully, but these errors were encountered: