Steps to replicate the issue (include links if applicable):
- open https://query.wikidata.org/ or the SPARQL endpoint of a Wikibase instance (e.g. https://database.factgrid.de/query/)
- add one or more lines with the command prefix (e.g. PREFIX wd: https://database.factgrid.de/entity/)
- press the button "format query" (represented by the diamond icon) on the left bar
What happens?:
- the query is formatted but all the lines with the command prefix disappear
What should have happened instead?:
- the query should be formatted but the lines with the command prefix should not disappear
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):