You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a test-case with a function containing a let statement with a specific attribute predicate and ran into an issue with the parser.
I got an error message stating:
when I test the function with ANTLR Preview in IntelliJ I also see a similar error regarding the mismatched input '$'
I think it is caused by the fact that I used a specific attribute name 'previous'
Whenever I test a construct like this:
let $var := fn:empty($element[@previous])
..
I get that error message. As soon as I change it to something else like:
let $var := fn:empty($element[@prev])
..
It will work as expected.
Is there a list of names that cannot be used as parameter names or prdicates?
I noted that I get the same error when I use this:
let $previous := fn:empty($element[@prev])
This gives the same error.
Is that something that should be fixed in the grammar?
Desktop (please complete the following information):
OS: MacOS
Browser: Chrome
IntelliJ Ultimate version: IntelliJ IDEA 2022.2.2 (Ultimate Edition)
Version [e.g. 22]
The text was updated successfully, but these errors were encountered:
I created a test-case with a function containing a let statement with a specific attribute predicate and ran into an issue with the parser.
I got an error message stating:
when I test the function with ANTLR Preview in IntelliJ I also see a similar error regarding the mismatched input '$'
I think it is caused by the fact that I used a specific attribute name 'previous'
Whenever I test a construct like this:
I get that error message. As soon as I change it to something else like:
It will work as expected.
Is there a list of names that cannot be used as parameter names or prdicates?
I noted that I get the same error when I use this:
This gives the same error.
Is that something that should be fixed in the grammar?
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: