diff --git a/library/prolog_colour.pl b/library/prolog_colour.pl index 26f4607210..c5217f9515 100644 --- a/library/prolog_colour.pl +++ b/library/prolog_colour.pl @@ -1672,11 +1672,12 @@ !, ( dict_field_extraction(Compound) -> colourise_term_arg(Compound, TB, Pos) - ; current_arithmetic_function(Compound) - -> colour_item(function, TB, FF-FT) - ; colour_item(no_function, TB, FF-FT) - ), - colourise_expression_args(Compound, TB, Pos). + ; ( current_arithmetic_function(Compound) + -> colour_item(function, TB, FF-FT) + ; colour_item(no_function, TB, FF-FT) + ), + colourise_expression_args(Compound, TB, Pos) + ). colourise_expression(Atom, TB, Pos) :- atom(Atom), !,