mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
use Prolog syntax highlighting for Mercury code
This commit is contained in:
parent
d03bbc1820
commit
ed63ebcd61
@ -7,7 +7,7 @@ contributors:
|
|||||||
Mercury is a strict, pure functional/logic programming language, with
|
Mercury is a strict, pure functional/logic programming language, with
|
||||||
influences from Prolog, ML, and Haskell.
|
influences from Prolog, ML, and Haskell.
|
||||||
|
|
||||||
```mercury
|
```prolog
|
||||||
% Percent sign starts a one-line comment.
|
% Percent sign starts a one-line comment.
|
||||||
|
|
||||||
% foo(Bar, Baz)
|
% foo(Bar, Baz)
|
||||||
@ -97,7 +97,7 @@ voter(P) :-
|
|||||||
|
|
||||||
Complete runnable example. File in 'types.m'; compile with 'mmc --make types'.
|
Complete runnable example. File in 'types.m'; compile with 'mmc --make types'.
|
||||||
|
|
||||||
```mercury
|
```prolog
|
||||||
:- module types.
|
:- module types.
|
||||||
:- interface.
|
:- interface.
|
||||||
:- import_module io. % required for io.io types in...
|
:- import_module io. % required for io.io types in...
|
||||||
|
Loading…
Reference in New Issue
Block a user