linguist icon indicating copy to clipboard operation
linguist copied to clipboard

Add support for Overpass QL

Open FloEdelmann opened this issue 2 years ago • 0 comments

Note: this is a follow-up issue to #5890 to keep the discussion clean.

Language name

"Overpass QL" or "Overpass Query Language" https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL

URL of example repository

  • https://github.com/ivangayton/overpass_queries
  • https://github.com/Schutz-Rettung-Zurich/elz-data
  • https://github.com/KDE/kpublictransport

… and many more, see https://github.com/users/FloEdelmann/projects/2/views/4

In total, there are currently 204 repositories (tracked in the project above) containing at least one *.overpassql file, and I'm actively encouraging others to rename Overpass QL files with other extensions to the recommended *.overpassql file extension.

Note: This meets the original criteria of having at least 200 repositories, and also the temporarily changed ones of having at least 200 files indexed, as it's reasonable for many repositories to contain only a single *.overpassql file (although some contain many).

URL of syntax highlighting grammar

tmGrammar.json syntax definition published under the compatible Mozilla Public License 2.0: https://github.com/tqdv/vscodium-overpassql-syntax/blob/master/the-extension/overpassql.tmGrammar.json

Other syntax highlighting grammars that may be interesting:

  • https://github.com/KDE/syntax-highlighting/blob/42a061b04c507de11b0fb240808fc65a7528d946/data/syntax/overpassql.xml
  • https://github.com/Teiron/OverpassQL.tmLanguage

Most popular extensions

Only *.overpassql.

Other file extensions are not common anymore: https://github.com/users/FloEdelmann/projects/2/views/6

Detected language

Sometimes CodeQL, most often plain text.

FloEdelmann avatar Mar 07 '23 18:03 FloEdelmann