github-linguist / linguist

Language Savant. If your repository's language is being reported incorrectly, send us a pull request!
MIT License
12.33k stars 4.27k forks source link

Add support of AsciiDoc #5342

Closed tamasborbas closed 3 years ago

tamasborbas commented 3 years ago

Language name

AsciiDoc

URL of example repository

URL of syntax highlighting grammar

https://github.com/highlightjs/highlight.js/blob/main/src/languages/asciidoc.js

Most popular extensions

.adoc, .asciidoc, .ad, .asc

Detected language

There is none

lildude commented 3 years ago

Linguist already has support for AsciiDoc:

https://github.com/github/linguist/blob/32ec19c013a7f81ffaeead25e6e8f9668c7ed574/lib/linguist/languages.yml#L350-L359

It won't show up in your language statistics by default as it's considered prose and prose is not counted by default. If you want your repo to show AsciiDoc, you'll need to implement the linguist-detectable override in your repos.

tamasborbas commented 3 years ago

Oh, thanks and sorry for the irrelevant issue then!