ligasgr / intellij-xquery

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

Incorrect error message when a '&' is in a string. #172

Closed rhdunn closed 8 years ago

rhdunn commented 8 years ago

Given:

text { "a&b" }
       ^----- <expr single> expected, got '"'

This error message is not specific to what the error actually is. This can make it harder to spot the error and fix it (especially if this is from a complex expression like building a set of HTTP parameters). A better error message would be something like:

text { "a&b" }
         ^----- '&' is invalid in this context, expected a complete XML entity.