Show
Ignore:
Timestamp:
08/14/08 07:29:14 (5 months ago)
Author:
Chuck.Esterbrook
Message:

Fix a problem with comment directives regarding commented out code.
thanks:hopscc
Tighten up leading whitespace in comment directive to 0 or 1 chars.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/Tests/800-warnings/400-no-warnings.cobra

    r1574 r1578  
    1818                        _onBumpEvent(ev)         
    1919                        assert this.rCount  # .no-warnings. warning:unnecessary this literal   
    20                          
     20                # commented out code 
     21                #.foo.bar 
     22                # .foo.bar 
     23                #       .foo.bar 
     24#.foo.bar 
     25# .foo.bar 
     26#       .foo.bar 
    2127                         
    2228        def doBump(source as Object, eArgs as EventArgs) 
     
    3036                assert e.rCount == 2 
    3137 
    32                 j=99            #  .no-warnings.  warning: never used 
     38                j=99            # .no-warnings.  warning: never used 
    3339                a = 99 
    3440                if (a < 10) #   .no-warnings.  warning: Unnecessary parens