ligasgr / intellij-xquery

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

Unresolved namespace highlighting for QNames #150

Open rhdunn opened 8 years ago

rhdunn commented 8 years ago

Given:

xquery version "3.0";
let $foo as element(foo:bar) := <foo:bar/>
return /foo:bar

The foo: namespace in <foo:bar/> is flagged as not being resolved, whereas element(foo:bar) and /foo:bar are not. All cases should report the error.

rhdunn commented 8 years ago

The error is also not reported when calling scoped functions, e.g.:

foo:bar("foo")
ligasgr commented 8 years ago

It is not shown on the namespace as the function will already be highlighted with error of not being able to resolve. The remaining lack of highlighting is a new feature.