Index: gc_core/py/lang_core/gc_engine.py ================================================================== --- gc_core/py/lang_core/gc_engine.py +++ gc_core/py/lang_core/gc_engine.py @@ -136,20 +136,21 @@ try: zFilter = re.compile(sFilter) except re.error: echo("# Error. List rules: wrong regex.") sFilter = None + # regex rules for sOption, lRuleGroup in chain(_getRules(True), _getRules(False)): if sOption != "@@@@": for _, _, sLineId, sRuleId, _, _ in lRuleGroup: if not sFilter or zFilter.search(sRuleId): yield ("RegEx", sOption, sLineId, sRuleId) - else: - for sRuleName, lActions in _rules_graph.dRule.items(): - sOption, _, cActionType, *_ = lActions - if cActionType == "-": - yield("Tokens", sOption, "", sRuleName) + # tokens rules + for sRuleName, lActions in _rules_graph.dRule.items(): + sOption, _, cActionType, *_ = lActions + if cActionType == "-": + yield("Tokens", sOption, "", sRuleName) def displayRules (sFilter=None): "display the name of rules, with the filter " echo("List of rules. Filter: << " + str(sFilter) + " >>")