Skip to content
  • Christian Persch's avatar
    parser: Record intermediates in order · e25a901c
    Christian Persch authored
    Previously the parser would store intermediates as
    a bit mask, which loses the order and, when matching,
    makes any permutation of the intermediates match the
    same sequence.
    
    This commit changes that to record the intermediates in
    the order they are used.
    
    Store the intermediate (and, for CSI and DCS sequences,
    the optional parameter character at the beginning of the
    parameters) in one unsigned int, packed as much as possible.
    
    Simplify the ESC, CSI and DCS matchers by using a combined
    code of final character and intermediates.
    e25a901c