ligasgr / intellij-xquery

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

XML closing tag completion does not work in ML8 catch blocks #180

Closed rhdunn closed 8 years ago

rhdunn commented 8 years ago

Given:

declare function local:test($value) { () };

declare function local:foo() {
    try {
        () (: test <a> :)
    } catch ($e) {
        () (: test <a> :)
    }
};

() (: test <a> :)

At the (: test <a> :) points:

  1. Delete the () statement.
  2. Type local:test( -- the open parenthesis is auto inserted.
  3. Type <a> (giving local:test(<a>).

In the catch block the result is local:test(<a>) which is incorrect. In the other places, the result is local:test(<a></a>) which is correct.