ligasgr / intellij-xquery

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

typing 'default' in a typeswitch statement incorrectly highlights default #182

Closed rhdunn closed 8 years ago

rhdunn commented 8 years ago

Typing:

typeswitch ($a)
    case document-node() return ()
    default return ()

results in the default token not being identified as a keyword, whereas case is. Note that pasting the above example in results in the correct behaviour.

ligasgr commented 8 years ago

Is this not a duplicate of https://github.com/ligasgr/intellij-xquery/issues/177 ?

rhdunn commented 8 years ago

Yes, sorry. I get confused as to which bugs I have raised :).

ligasgr commented 8 years ago

No problem :) Thanks for raising them. I would not be able to find all of those edge cases myself!