/usr/share/highlight/langDefs/mercury.lang is in highlight-common 3.18-3build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | -- FIXME omitted definition of $KEYWORDS(KWA)
-- Language definition generated by lang2to3
Description="Mercury"
Keywords={
{ Id=1,
List={"is", "and", "or", "func", "impure", "", "", "pred", "", "semipure", "not", "when", "then", "if", "else", "where", "", "", "all", "arbitrary", "promise_equivalent_solutions", "promise_equivalent_solution_sets", "promise_exclusive", "promise_exclusive_exhaustive", "promise_exhaustive", "promise_impure", "", "promise_impure_implicit", "promise_pure", "promise_pure_implicit", "promise_semipure", "promise_semipure_implicit", "some", "ype", "solver", "", "", "end_module", "import_module", "include_module", "initialise", "initialize", "finalise", "finalize", "inst", "instance", "mode", "module", "pragma", "", "", "promise", "", "rule", "typeclass", "use_module", "interface", "implementation", "det"},
},
{
Id=2,
List={"div", "mod", "rem"},
},
{ Id=3,
Regex=[[[A-Z]\w+]],
},
{ Id=4,
Regex=[[(\w+)\s*\(]],
},
}
Strings={
Delimiter=[["|']],
}
IgnoreCase=false
Comments={
{ Block=false,
Delimiter= { [[%]] },
},
}
Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|\=|\/|\*|\|\+|\-|\~]]
--FIXME no default escchar param: regex(\\\d{3}|\\x[[:xdigit:]]{2}|\\[ntvbrfa\\\?'"])
|