ligasgr / intellij-xquery

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

/x:y style constructs flag declared namespaces as unused #143

Closed rhdunn closed 9 years ago

rhdunn commented 9 years ago

Using the latest code:

xquery version "3.0";
declare namespace html = "http://www.w3.org/1999/xhtml";
/html:p

Flags the namespace as unused. This is a case not covered in the fix for issue #135.

rhdunn commented 9 years ago

The same applies to element(x:y) constructs:

xquery version "3.0";
declare namespace html = "http://www.w3.org/1999/xhtml";
let $x as element(html:p)? := ()
return $x
ligasgr commented 9 years ago

Thanks for valuable feedback! I probably wouldn't have found those so quickly!