ligasgr / intellij-xquery

Plugin to support XQuery in Intellij Idea
Apache License 2.0
35 stars 23 forks source link

Multi-line for statements are not indented #151

Open rhdunn opened 8 years ago

rhdunn commented 8 years ago

When pasting:

for $x in $y
    return $x

it gets formatted as:

for $x in $y
return $x

The return (and any let, order by and where clauses before it) are not indented, when they should be.

ligasgr commented 8 years ago

Hi,

This is 'by design'. The basic formatting 'template' was based on the examples from XQuery 3.0 specification and XQuery Use cases. I'll add an option enable/disable the formatting where FLWOR expression clauses are indented on the same level.