From: Clifford Wolf Date: Wed, 12 Sep 2018 11:26:08 +0000 (+0200) Subject: Improve bogus task tags detection X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e90bcb588e97118af0cdba23fae562fb0efbf294;p=SymbiYosys.git Improve bogus task tags detection Signed-off-by: Clifford Wolf --- diff --git a/sbysrc/sby.py b/sbysrc/sby.py index efc8b1a..435119d 100644 --- a/sbysrc/sby.py +++ b/sbysrc/sby.py @@ -164,7 +164,7 @@ def read_sbyconfig(sbydata, taskname): if len(task_tags_all) and not found_task_tag: tokens = line.split() - if len(tokens) > 0 and tokens[0].endswith(":"): + if len(tokens) > 0 and tokens[0][0] == line[0] and tokens[0].endswith(":"): print("ERROR: Invalid task specifier \"%s\"." % tokens[0], file=sys.stderr) sys.exit(1)