[resending with the attached file enclosed as .tar.bz2 due to your anti-spam measures]
Hello, It looks like a bug inside the indent utility. I've tried to indent the attached JavaScript file (this file was taken from GMail interface, since I was trying to write a user script and needed to analyse how they do some things) and the resulted file was more than 30MB in size. I've used the following command to do the job (I'm including the raw terminal session output here): === [galaxy@galaxy exchange]$ indent google-mail.js -o output.indent indent: google-mail.js:2: Error:Unmatched 'else' indent: google-mail.js:3: Error:Unmatched 'else' indent: google-mail.js:3: Error:Unmatched 'else' indent: google-mail.js:4: Warning:old style assignment ambiguity in "=+". Assuming "= +" indent: google-mail.js:32: Error:Unmatched 'else' indent: google-mail.js:38: Error:Unmatched 'else' indent: google-mail.js:39: Error:Unmatched 'else' indent: google-mail.js:42: Warning:old style assignment ambiguity in "=+". Assuming "= +" indent: google-mail.js:42: Error:Unmatched 'else' indent: google-mail.js:43: Error:Unmatched 'else' indent: google-mail.js:45: Error:Unmatched 'else' indent: google-mail.js:46: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: google-mail.js:47: Error:Unmatched 'else' indent: google-mail.js:49: Error:Unmatched 'else' indent: google-mail.js:49: Error:Unmatched 'else' indent: google-mail.js:50: Error:Stmt nesting error. indent: google-mail.js:50: Error:Stmt nesting error. indent: google-mail.js:53: Error:Unmatched 'else' indent: google-mail.js:53: Error:Unmatched 'else' indent: google-mail.js:53: Error:Unmatched 'else' indent: google-mail.js:54: Error:Unmatched 'else' indent: google-mail.js:54: Error:Unmatched 'else' indent: google-mail.js:54: Error:Unmatched 'else' indent: google-mail.js:54: Error:Unmatched 'else' indent: google-mail.js:54: Error:Unmatched 'else' indent: google-mail.js:54: Error:Unmatched 'else' indent: google-mail.js:54: Error:Unmatched 'else' indent: google-mail.js:57: Error:Unmatched 'else' indent: google-mail.js:57: Error:Unmatched 'else' indent: google-mail.js:61: Error:Stmt nesting error. indent: google-mail.js:71: Error:Unmatched 'else' indent: google-mail.js:77: Error:Unmatched 'else' indent: google-mail.js:87: Error:Unmatched 'else' indent: google-mail.js:89: Error:Unmatched 'else' indent: google-mail.js:90: Error:Unmatched 'else' indent: google-mail.js:91: Error:Unmatched 'else' indent: google-mail.js:92: Error:Stmt nesting error. indent: google-mail.js:92: Error:Unmatched 'else' indent: google-mail.js:92: Error:Stmt nesting error. indent: google-mail.js:92: Error:Unmatched 'else' indent: google-mail.js:92: Error:Stmt nesting error. indent: google-mail.js:92: Error:Stmt nesting error. indent: google-mail.js:92: Error:Stmt nesting error. indent: google-mail.js:93: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: google-mail.js:94: Error:Unmatched 'else' indent: google-mail.js:119: Error:Unmatched 'else' indent: google-mail.js:121: Error:Stmt nesting error. indent: google-mail.js:121: Error:Stmt nesting error. indent: google-mail.js:122: Error:Unexpected end of file [galaxy@galaxy exchange]$ ls -l google-mail.js output.indent -rw-r--r-- 1 chrome-p chrome-p 68231 May 3 16:29 google-mail.js -rw------- 1 galaxy galaxy 30454857 May 3 16:55 output.indent === Hope this would help to find a bug and fix it. -- (GM) _______________________________________________ bug-indent mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-indent
