Ignore:
Timestamp:
Jun 2, 2010, 6:03:51 PM (9 years ago)
Author:
cameron
Message:

Fix <!--->, <!----> and <!-[-] handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/parabix2/parabix2.py

    r360 r407  
    178178                Ct_starts |= Ct_Cursor
    179179                Ct_Cursor = bitutil.Advance(Ct_Cursor)
     180                Ct_end_scan |= Ct_Cursor
    180181                PI_Cursor = bitutil.ScanThru(PI_Cursor, PI_end_scan)
    181182                CD_Cursor = bitutil.ScanThru(CD_Cursor, CD_end_scan)
     
    193194       
    194195        callouts.CtCDPI_mask |= bitutil.Advance(CD_ends | Ct_ends | PI_ends) - CtCDPI_starts
    195         callouts.error = Ct_ends & ~lex.RAngle
     196        callouts.error = Ct_ends & ~lex.RAngle | Ct_starts & ~ lex.Hyphen
    196197        # If any of the Comment, CDATA or PI markups are unterminated, it is an error.
    197198        callouts.error |= callouts.CtCDPI_mask &~ EOF_mask
Note: See TracChangeset for help on using the changeset viewer.