When applying the new 6.5 "format" feature in the N1QL query editor complex queries are sometimes not indented correctly to the proper level.
The two example N1QL files ( indents_fine.n1ql and indents_bad.n1ql ) are almost identical.
BUT the format differently WRT indenting see attached image where the last three lines are incorrectly indented and additional level.
|For Gerrit Dashboard: MB-36577
|MB-36577 - N1QL formatter fails on certain queries
|Merge branch 'couchbase/mad-hatter' into master