overstory / marklogic-intellij-plugin

Plugin to support XQuery + MarkLogic debugging in Intellij Idea
Apache License 2.0
12 stars 2 forks source link

Ide does not recognize object-node definition with dynamic keys #58

Open peetkes opened 5 years ago

peetkes commented 5 years ago

When I define an xquery function like this in the ide:

declare function ucl:filter-relation(
    $type as xs:string,
    $object-nodes as object-node()*
) as object-node()*
{
    for $node in $object-nodes
    return object-node { $type : $node }
};

The ide flags the return object-node { $type : $node } as erroneous. It does not like the $type. I get below message for the $node parameter

'!','(','+','-','/','//',<equality comp>,<multiplicative operator>,<node comp>,<relational comp>,<value comp>,'=>','?','NCName','[',and,cast,castable,except,instance,intersect,or,to,treat, union,'|' or '||' expected, but got $