ligasgr / intellij-xquery

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

'default' in a typeswitch statement within a function not highlighted when typing #177

Closed rhdunn closed 8 years ago

rhdunn commented 8 years ago

Given:

declare function test($a) {
    typeswitch ($a)
        case document-node() return ()
        <caret>
};
()

with the cursor at <caret>, typing:

default return ()

causes the default keyword to be highlighted as an identifier, not as a keyword.

The default keyword is correctly highlighted in this context when (a) pasting the default line, (b) writing the typeswitch statement outside the function.

ligasgr commented 8 years ago

Fixed in #178