Grammalecte  Check-in [ee5c769ea3]

Overview
Comment:[build] check suggestions
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | build
Files: files | file ages | folders
SHA3-256: ee5c769ea3a22450e2df557418fa824d9baa37f3fdf2b8dd67cb142076466a16
User & Date: olr on 2017-06-20 05:17:49
Other Links: manifest | tags
Context
2017-06-20
06:50
[fr] màj: det_plur +nom sing check-in: b1a65853ff user: olr tags: fr, trunk
05:17
[build] check suggestions check-in: ee5c769ea3 user: olr tags: build, trunk
05:17
[fr] nr: confusion <mai/mais> check-in: 357cc0bf30 user: olr tags: fr, trunk
Changes

Modified compile_rules.py from [b76ec26418] to [1657201ddf].

   355    355           for x in re.finditer("group[(](\d+)[)]", sAction):
   356    356               if int(x.group(1)) > nGroup:
   357    357                   print("# Error in groups in replacement at line " + sIdAction + " ("+str(nGroup)+" groups only)")
   358    358       else:
   359    359           for x in re.finditer(r"\\(\d+)", sAction):
   360    360               if int(x.group(1)) > nGroup:
   361    361                   print("# Error in groups in replacement at line " + sIdAction + " ("+str(nGroup)+" groups only)")
   362         -        if re.search("[.]\\w+[(]", sAction):
          362  +        if re.search("[.]\\w+[(]|sugg\\w+[(]", sAction):
   363    363               print("# Error in action at line " + sIdAction + ":  This action looks like code. Line should begin with =")
   364    364   
   365    365       if cAction == "-":
   366    366           ## error detected --> suggestion
   367    367           if not sAction:
   368    368               print("# Error in action at line " + sIdAction + ":  This action is empty.")
   369    369           if sAction[0:1] == "=":