mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 04:18:48 +00:00
Add the Mercury language to linguist
lib/linguist/languages.yml:
Add the declaration for the language.
samples/Mercury:
Add samples for the classifier as Mercury shares it's filename extension
with several other languages.
This commit is contained in:
14
samples/Mercury/hello.m
Normal file
14
samples/Mercury/hello.m
Normal file
@@ -0,0 +1,14 @@
|
||||
% "Hello World" in Mercury.
|
||||
|
||||
% This source file is hereby placed in the public domain. -fjh (the author).
|
||||
|
||||
:- module hello.
|
||||
:- interface.
|
||||
:- import_module io.
|
||||
|
||||
:- pred main(io::di, io::uo) is det.
|
||||
|
||||
:- implementation.
|
||||
|
||||
main(!IO) :-
|
||||
io.write_string("Hello, world\n", !IO).
|
||||
Reference in New Issue
Block a user