Changeset 3066 for proto/PDF/cb_pablo.py


Ignore:
Timestamp:
Apr 22, 2013, 3:01:18 PM (6 years ago)
Author:
lindanl
Message:

New comment and string parsing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/PDF/cb_pablo.py

    r3065 r3066  
    360360        # as definite comment delimiters.
    361361        comment_start = line_ends1 & lex.Percent
    362         out_Callouts.mask = pablo.InclusiveSpan(comment_start, pablo.ScanTo(comment_start, lex.EOL))
     362        comment_end = pablo.ScanTo(comment_start, lex.EOL)
     363        out_Callouts.mask = pablo.InclusiveSpan(comment_start, comment_end)
     364        out_Callouts.mask |= instring
    363365        #
    364366        # Any closing paren that was not actually used to close
     
    366368        marker.starts = pablo.Advance(~instring) & instring
    367369        marker.ends = pablo.ScanThru(marker.starts, instring)
    368         marker.error |= escape_Callouts.RParen &~ closed_RParen &~ pablo.SpanUpTo(matches.comment_start, matches.comment_end)
     370        marker.error |= escape_Callouts.RParen &~ closed_RParen &~ pablo.SpanUpTo(comment_start, comment_end)
    369371
    370372
     
    569571
    570572def Main(basis_bits, lex, escape_Callouts, out_Callouts):
    571 
    572         Classify_bytes(basis_bits, lex)
    573 
    574         Parse_Escaped(lex, parity, escape_Callouts, out_Callouts)
    575 
    576         Match_Parens_With_Comments(lex, escape_Callouts, marker, out_Callouts)
    577        
    578         Parse_HexStrings(lex, marker, out_Callouts)
    579 
    580         Normalize_WS(lex, out_Callouts)
    581 
    582         Prepare_content_buffer(basis_bits, lex, escape_Callouts, out_Callouts)
    583 
    584 
    585 
     573  pass
     574
     575
     576
     577
Note: See TracChangeset for help on using the changeset viewer.