Closed sofiageo closed 7 years ago
Can you please show a screenshot of how it looks like when you see the "warning"? I can, temporarily, see an underscore and not marking as a keyword but only until I type in "return $x". Does it persists also after full expression is typed in? Can you please also specify the version of the plugin and the IDE?
I'm using IntelliJ IDEA 2016.1.3 on Windows 10 XQuery Plugin 3.0.2 The warning persists. Example (including some more issues)
OK I start to have the feeling It's my fault for using wrong command order... but it still works like that in BaseX so it was confusing. Sorry about false flag. Since it works (I don't know if it's valid XQuery or not), maybe you can adjust it to work with this order too?
You're absolutely right that it should support. It's part of 3.0 version that it can be in any order. https://www.w3.org/TR/xquery-30/#prod-xquery30-IntermediateClause
The issue is with the lexical analysis aspect where the "where" is missing in the list of "following" tokens (XQuery.flex:285 and XQuery.flex:283).
Thanks for quick response and additional data. It's nearly impossible to analyse the issue without that 👍
is OK, but
Gives a warning for word descending https://www.w3.org/TR/xquery/#doc-xquery-OrderModifier