[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#15582: js-mode indent bug
From: |
Jakub Jankiewicz |
Subject: |
bug#15582: js-mode indent bug |
Date: |
Thu, 10 Oct 2013 14:06:48 +0200 |
Hi,
I found this bug in js-mode indent:
when you have multiline if statement with comment at the end, next line
indent is doubled.
If I have js-indent-level equal 8 the code look like this:
if (x > left && x < left + image.width &&
y > top && y < top + image.height) {
do_somethig();
}
but when I put comment after if it look like this:
if (x > left && x < left + image.width &&
y > top && y < top + image.height) { // found
do_somethig();
when js-indent-level is 2 it have 4 spaces. The same is with while
while (10 &&
20) { // asd
xx();
four spaces instead of two
version: GNU Emacs 24.2.1
--
Jakub Jankiewicz, Web Developer
http://jcubic.pl
signature.asc
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#15582: js-mode indent bug,
Jakub Jankiewicz <=