mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-01 04:20:39 +02:00
use Prolog syntax highlighting for Mercury code
This commit is contained in:
@@ -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...
|
||||||
|
Reference in New Issue
Block a user