ligasgr / intellij-xquery

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

Syntax Highlighting - expressions and entity reference combo #117

Closed bciano closed 9 years ago

bciano commented 10 years ago

Seems to only be an issue in the case where you have an inline expression and a character entity reference together.

xquery version "1.0-ml";

let $v := "hello"
let $x := <a href="/index.xqy?variable={$v}&amp;foo=bar"></a>
let $y := <foo>bar</foo>
return $x

Screenshot:

Red squiggly line under the ampersand, and the syntax highlighting is inaccurate for the remainder of the code - as per lines 5 and 6.

image

ligasgr commented 10 years ago

Thanks for raising the issue. Looks like an issue with lexical analysis. I'll try to fix it in the next release. From what I've checked it's possible to overcome the issue by just re-opening the file.