eliaperantoni opened a new issue, #1878: URL: https://github.com/apache/datafusion-sqlparser-rs/issues/1878
### How to reproduce 1. Build a `Expr::Case` expression, e.g.: ```sql CASE col1 WHEN col2 THEN col3 ELSE col4 END ``` 2. 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. ```sql CASE col1 WHEN col2 THEN col3 ELSE col4 END ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Span covers this ``` ### Expected behavior The `Span` should include `CASE` and `END` too: ```sql CASE col1 WHEN col2 THEN col3 ELSE col4 END ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Span should cover this ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org