contrib/check-code.py
changeset 43081 e65e7290041e
parent 43076 2372284d9457
child 43112 24a07347aa60
equal deleted inserted replaced
43080:86e4daa2d54c 43081:e65e7290041e
   506         (
   506         (
   507             r'''(?x)ui\.(status|progress|write|note|warn)\(
   507             r'''(?x)ui\.(status|progress|write|note|warn)\(
   508          [ \t\n#]*
   508          [ \t\n#]*
   509          (?# any strings/comments might precede a string, which
   509          (?# any strings/comments might precede a string, which
   510            # contains translatable message)
   510            # contains translatable message)
   511          ((['"]|\'\'\'|""")[ \npq%bAPMxno]*(['"]|\'\'\'|""")[ \t\n#]+)*
   511          b?((['"]|\'\'\'|""")[ \npq%bAPMxno]*(['"]|\'\'\'|""")[ \t\n#]+)*
   512          (?# sequence consisting of below might precede translatable message
   512          (?# sequence consisting of below might precede translatable message
   513            # - formatting string: "% 10s", "%05d", "% -3.2f", "%*s", "%%" ...
   513            # - formatting string: "% 10s", "%05d", "% -3.2f", "%*s", "%%" ...
   514            # - escaped character: "\\", "\n", "\0" ...
   514            # - escaped character: "\\", "\n", "\0" ...
   515            # - character other than '%', 'b' as '\', and 'x' as alphabet)
   515            # - character other than '%', 'b' as '\', and 'x' as alphabet)
   516          (['"]|\'\'\'|""")
   516          (['"]|\'\'\'|""")