Overview
| Comment: | [build] rules parser: multilines actions | 
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive | 
| Timelines: | family | ancestors | descendants | both | build | rg | 
| Files: | files | file ages | folders | 
| SHA3-256: | 5f4a8618161f6f79cc1f2a227eba1bb3 | 
| User & Date: | olr on 2018-06-22 19:36:13 | 
| Other Links: | branch diff | manifest | tags | 
Context
| 2018-06-23 | ||
| 06:33 | [fr] conversion: regex rules -> graph rules check-in: 1bef5f8a17 user: olr tags: fr, rg | |
| 2018-06-22 | ||
| 19:36 | [build] rules parser: multilines actions check-in: 5f4a861816 user: olr tags: build, rg | |
| 17:33 | [core] test existence of negative pattern before checking token check-in: 2403b60204 user: olr tags: core, rg | |
Changes
Modified compile_rules_graph.py from [c35a62c9a6] to [326d35579d].
| ︙ | ︙ | |||
| 288 289 290 291 292 293 294 | 
            if m:
                sRuleName = m.group(1)
                iActionBlock = 1
                nPriority = int(m.group(2)[1:]) if m.group(2)  else 4
            else:
                print("Error at rule group: ", sLine, " -- line:", i)
                break
 | | > | 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 | 
            if m:
                sRuleName = m.group(1)
                iActionBlock = 1
                nPriority = int(m.group(2)[1:]) if m.group(2)  else 4
            else:
                print("Error at rule group: ", sLine, " -- line:", i)
                break
        elif re.search("^    +<<- ", sLine) or sLine.startswith("        ") \
                or re.search("^    +#", sLine) or re.search(r"^    [-~=>/](?:\d(?::\d+|)|)>> ", sLine) :
            # actions
            sActions += " " + sLine.strip()
        elif re.match("[  ]*$", sLine):
            # empty line to end merging
            if not lTokenLine:
                continue
            if not sActions:
 | 
| ︙ | ︙ |