code: def get_language(query: str) -> str:
      
      query = query.lower()
      for language in LANGUAGES:
          if query.endswith(language):
              return language
      return ''
docs: Tries to work out the highlight.js language of a given file name or
      shebang. Returns an empty string if none match.