Changeset 3252


Ignore:
Timestamp:
Jun 2, 2013, 9:55:50 AM (6 years ago)
Author:
cameron
Message:

Add numeric_starts and keyword_starts markers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/PDF/cb_pablo.py

    r3155 r3252  
    8181    ends = 0
    8282    error = 0
    83    
     83    numeric_starts = 0
     84    keyword_starts = 0
    8485   
    8586
     
    338339        numeric_starts = (numeric_characters &~ pablo.Advance(lex.Regular)) &~ out_Callouts.mask
    339340        numeric_follows = pablo.ScanThru(numeric_starts, lex.Regular)
     341        marker.numeric_starts = numeric_starts 
    340342        marker.starts |= numeric_starts
    341343        marker.ends |= numeric_follows
     
    345347        keywords_starts = (lex.Regular &~ pablo.Advance(lex.Regular)) &~ out_Callouts.mask
    346348        keywords_follows = pablo.ScanThru(keywords_starts, lex.Regular)
     349        marker.keyword_starts = keyword_starts
    347350        marker.starts |= keywords_starts | ((lex.LBracket | lex.RBracket)&~ out_Callouts.mask)
    348351        marker.ends |= keywords_follows
Note: See TracChangeset for help on using the changeset viewer.