ligasgr / intellij-xquery

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

'declare function' not being syntax highlighted when editing a function above it #160

Closed rhdunn closed 8 years ago

rhdunn commented 8 years ago

Given:

declare function foo() {
    ()
};
declare function bar() {
    ()
};
()
  1. Delete the () in foo.
  2. Type <foo> -- the </foo> is inserted by autocomplete.

At this point, the declare function in bar gets the identifier syntax highlighting instead of keyword highlighting. NOTE: I don't see this happen if bar contains <bar></bar>, but have seen this happen in other cases (although I don't know what triggers those cases).