ThinkRedstone opened a new pull request, #2097:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2097

   This PR adds a new type of parser error, `SpannedParserError`, which 
includes the span of the token which raised the error.
   In terms of simply displaying the error via `to_string` or `Display`, 
nothing has changed, but if the error is handled by a more complicated system 
it can get the actual span of the error- to for example underline the relevant 
part of the statement in red or otherwise highlight it.
   
   This new type of error has been implemented for most parser errors, 
specifically all errors raised via `parser_err!` plus a few extra.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to