ad-freiburg / qlever-ui

A user interface for QLever
Apache License 2.0
21 stars 15 forks source link

Improve support for comments in queries #5

Closed graue70 closed 3 years ago

graue70 commented 4 years ago

Comments are already supported, meaning they can be typed and do not raise an error.

It would, however, be nice to have them colored differently than predicates.

Also, there is an issue with autocompletion if one types #. There is autocompletion happening and there are actual (seemingly correct) results whose labels start with a hash sign. I'm not sure whether this can be solved somehow, meaning whether it can be possible for the UI to recognize and differentiate between wanting for example wd:Q12886367 (#Beautiful) and typing a comment.

graue70 commented 4 years ago

This is how comments look in Visual Studio Code with the extension SPARQL Language Server (with Stardog extensions): Screenshot_vscode

Of course, they don't have the autocompletion problem I mentioned above.

jbuerklin commented 4 years ago

I don't quite see a good solution for the autocomplete problem, yet. I'll think about it and add syntax highlighting for comments in the meantime.

graue70 commented 3 years ago

The coloring of comments is implemented.

I'm closing this issue because it isn't clear whether there even exists a solution for the autocompletion problem.