Fix bug with desynchronizing in the XQuery highlighter.
Fix parser bug with JSON items. Refactor grouping variable ebnf rule according to the latest W3C spec.
Fix bug with XQuery comment regexp for syntax highlighter.
Improvements in the XQuery parse tree handler API.
Fix lexer bug.
Fixed autoclosing tag behaviour in XQuery.
Remove unused event handler.
Merge pull request #1268 from wcandillon/master

XQuery Mode bug fixes.