From 0105b4db472b44602fe3d8bba9d866ed60a1f4cd Mon Sep 17 00:00:00 2001 From: Jan Wielemaker Date: Sun, 5 Jan 2025 12:29:26 +0100 Subject: [PATCH] FIXED: library(prolog_colour): misleading colouring of `Dict.field` Field was flagged as an error (`no_function`). --- library/prolog_colour.pl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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), !,