mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
adds Nim-related mimetypes back (#23589)
ref https://github.com/nim-lang/Nim/pull/23226
This commit is contained in:
@@ -432,6 +432,10 @@ const mimes* = {
|
||||
"msty": "application/vnd.muvee.style",
|
||||
"taglet": "application/vnd.mynfc",
|
||||
"nlu": "application/vnd.neurolanguage.nlu",
|
||||
"nim": "text/nim",
|
||||
"nimble": "text/nimble",
|
||||
"nimf": "text/nim",
|
||||
"nims": "text/nim",
|
||||
"ntf": "application/vnd.nitf",
|
||||
"nitf": "application/vnd.nitf",
|
||||
"nnd": "application/vnd.noblenet-directory",
|
||||
|
||||
@@ -19,5 +19,10 @@ template main() =
|
||||
# see also `runnableExamples`.
|
||||
# xxx we should have a way to avoid duplicating code between runnableExamples and tests
|
||||
|
||||
doAssert m.getMimetype("nim") == "text/nim"
|
||||
doAssert m.getMimetype("nimble") == "text/nimble"
|
||||
doAssert m.getMimetype("nimf") == "text/nim"
|
||||
doAssert m.getMimetype("nims") == "text/nim"
|
||||
|
||||
static: main()
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user