Sublime Forum

JavaScript indentation seems to have regressed?

#1

If I type the following code in an HTML file or a JavaScript file (appropriate syntaxes selected), it does not indent properly:

foo({ bar: <return>] })

Notice where I press enter.

The correct behaviour is this:

But I always get this:

This was working a few weeks ago. I’m using the dev build.

Another issue that I have is you cannot comment out the following code in an HTML file:

<script></script>

It simply changes it to:

// <script></script>

This has never worked AFAIK. It works fine with other HTML tags.

Has anyone else experienced this?

Many thanks for the great product.

0 Likes

#2

Both of these issues happen for me, running the latest Dev build.

0 Likes

#3

Fixed in 2080. Thanks.

0 Likes