Commits

Ronald Oussoren committed 0ae37e2

Remove single-line comments early on, fixes a bug on GNUstep

  • Participants
  • Parent commits e415be1
  • Branches pyobjc-ancient

Comments (0)

Files changed (1)

Scripts/CodeGenerators/enum_generator.py

     in_comment = 0
 
     for ln in fp.xreadlines():
+        ln = LINE_COMMENT_RE.sub('', ln)        
+        
         m = DEFINE_RE.match(ln)
         if m is not None:
             name, value = m.group(1), m.group(2)
                     in_enum = 0
                     continue
 
-                ln = LINE_COMMENT_RE.sub('', ln)        
                 ln = BLOCK_1_RE.sub('', ln)
                 m = BLOCK_S_RE.search(ln)
                 if m: