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.
Given:
with the cursor at
<caret>
, typing: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 thedefault
line, (b) writing the typeswitch statement outside the function.