How to reproduce
- Build a
Expr::Case expression, e.g.:
CASE col1 WHEN col2 THEN col3 ELSE col4 END
- Call
Spanned:span on it.
You'll notice that the Span only selects nodes that appear within the CASE and implement Spanned correctly, but the CASE and END keywords are not highlighted.
CASE col1 WHEN col2 THEN col3 ELSE col4 END
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Span covers this
Expected behavior
The Span should include CASE and END too:
CASE col1 WHEN col2 THEN col3 ELSE col4 END
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Span should cover this