From e1abfb76324e515ec8810d8832a1217c21133101 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Mon, 11 Apr 2016 08:45:29 +0200 Subject: Prolog: no hint for using b/t (valid for trees group) --- prolog/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'prolog/common.py') diff --git a/prolog/common.py b/prolog/common.py index 5187c65..d15003d 100644 --- a/prolog/common.py +++ b/prolog/common.py @@ -50,8 +50,8 @@ def hint(code, aux_code): # a,b,c are a bit dangerous when crossing the river exercise is being solved # what about potential numbers after letters? - # this will have to be solved more generally - targets = {'a', 'b', 'c', 'x', 'y', 'z', 'h', 't', 'l', 's', 'v', 'w'} + # TODO this will have to be solved more generally + targets = {'a', 'c', 'x', 'y', 'z', 'h', 'l', 's', 'v', 'w'} marks = [(t.pos, t.pos + len(t.val)) for t in tokens if t.type == 'NAME' and t.val in targets] if marks: hints += [{'id': 'noncapitalised_variable_markup', 'start': m[0], 'end': m[1]} for m in marks] + \ -- cgit v1.2.1