When using CodeMirror with SQL as the mime type, if I have a double-closing parenthesis next to each other and hit return, it indents the new line to the start of the first open parenthesis. However, when there is a space between the two parentheses, the behavior is as I would expect. For example this:
SELECT Max(Round(column, 2))
FROM table;
…turns into this:
SELECT Max(Round(column, 2))
FROM table;
How do I fix this auto-indenting to work correctly and go to the beginning of the new line if all prior parentheses are closed?