ad-freiburg / qlever-ui

A user interface for QLever
Apache License 2.0
19 stars 12 forks source link

Highlight tokens causing parse error if metadata available #51

Closed Qup42 closed 1 year ago

Qup42 commented 1 year ago

With ad-freiburg/qlever#790 qlever will be returning metadata about parse errors. When a parsing error happens the exact location that caused it will also be returned. This PR makes use of that information in the frontend to highlight the location in the echoed query. The highlighting is still basic but it works.

Example: image

Qup42 commented 1 year ago

Should be fixed now.

hannahbast commented 1 year ago

@Qup42 Thanks a lot, Julian, this is super useful!