the reason for this is because the package you are using doesn't include any indentation rules, so the Default indentation rules are used.
The Default indentation rules contains the following regex pattern to decrease the indentation level:
I believe it is supposed to handle when a block comment was opened on a previous line and closed on this line, but it doesn't check that, only that the block comment closed before the
So, as we can see, your first snippet matches the regex due to ending in
*/ }, but the second one doesn't due to the
*/ not being followed by
} and the end of the line. You should probably log an issue on the package's repo to request that they add proper indentation rules.