Changeset 1585

Show
Ignore:
Timestamp:
08/19/08 06:14:58 (3 months ago)
Author:
Chuck.Esterbrook
Message:

Fixed: Putting a comment after a doc string, but before a test section causes an invalid compilation error.

Location:
cobra/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/Developer/IntermediateReleaseNotes.text

    r1581 r1585  
    103103 
    104104* Fixed: Some bitwise operations with integer literals of 16 or 8 bits produce invalid compilation errors. 
     105 
     106* Fixed: Putting a comment after a doc string, but before a `test` section causes an invalid compilation error. 
  • cobra/trunk/Source/CobraParser.cobra

    r1584 r1585  
    16821682                        codePartContainingTest = codePart to BoxMember  # TODO: figure out better typing for this assignement and the method sig of this method 
    16831683                try 
     1684                        while .peek.which in 'EOL', .grab 
    16841685                        if .peek.which in ['BODY', 'TEST', 'REQUIRE', 'ENSURE', 'OR', 'AND'] 
    16851686                                # sectional 
  • cobra/trunk/Tests/120-classes/804-test.cobra

    r1181 r1585  
    1  
    21class BlindWatchMaker1 
    32 
     
    2423                                sb.append(c) 
    2524                        return sb.toString 
     25 
     26        def foo as String 
     27                """ 
     28                """ 
     29# test having comments after the doc string but before the 'test' section. 
     30                test 
     31                        assert true 
     32                body 
     33                        return ''