anchor.diff:      lv_line = 'a = |{ b }={ c }|.'.                         "#EC NOTEXT
   
       " Generate table with expected values after parsing
  -    _generate_parse 'T' 4  1.
  -    _generate_parse 'T' 5  1.
  -    _generate_parse 'T' 9  1.
  -    _generate_parse 'T' 11 1.
  -    _generate_parse 'K' 13 1.
  -    _generate_parse 'T' 15 1.
  -    _generate_parse 'T' 16 1.
  -
  -    " Generate table with expected values after ordering
  -    _generate_order 'T' 4  1  '|'.
  -    _generate_order 'T' 10 1  '}'.
  -    _generate_order 'K' 13 1  ''.
  -    _generate_order 'T' 16 1  '}'.
  -
  -    " Generate table with expected values after extending
  -    _generate_extend '.' 0  4  ''.
  -    _generate_extend 'T' 4  1  '|'.
  -    _generate_extend '.' 5  5  ''.
  -    _generate_extend 'T' 10 1  '}'.
  -    _generate_extend '.' 11 2  ''.
  -    _generate_extend 'K' 13 1  ''.
  -    _generate_extend '.' 14 2  ''.
  -    _generate_extend 'T' 16 1  '}'.
  -    _generate_extend '.' 17 1  ''.
  +    generate_parse( iv_token  = 'T'
  +                    iv_offset = 4
  +                    iv_length = 1 ).
  +    generate_parse( iv_token  = 'T'
  +                    iv_offset = 5
  +                    iv_length = 1 ).
  +    generate_parse( iv_token  = 'T'
  +                    iv_offset = 9
  +                    iv_length = 1 ).
  +    generate_parse( iv_token  = 'T'
  +                    iv_offset = 11
  +                    iv_length = 1 ).
  +    generate_parse( iv_token  = 'K'
  +                    iv_offset = 13
  +                    iv_length = 1 ).
  +    generate_parse( iv_token  = 'T'
  +                    iv_offset = 15
  +                    iv_length = 1 ).
  +    generate_parse( iv_token  = 'T'
  +                    iv_offset = 16
  +                    iv_length = 1 ).
  +
  +    " Generate table with expected values after ordering
  +    generate_order( iv_token    = 'T'
  +                    iv_offset   = 4
  +                    iv_length   = 1
  +                    iv_text_tag = '|' ).
  +    generate_order( iv_token    = 'T'
  +                    iv_offset   = 10
  +                    iv_length   = 1
  +                    iv_text_tag = '}' ).
  +    generate_order( iv_token    = 'K'
  +                    iv_offset   = 13
  +                    iv_length   = 1
  +                    iv_text_tag = '' ).
  +    generate_order( iv_token    = 'T'
  +                    iv_offset   = 16
  +                    iv_length   = 1
  +                    iv_text_tag = '}' ).
  +
  +    " Generate table with expected values after extending
  +    generate_extend( iv_token    = '.'
  +                     iv_offset   = 0
  +                     iv_length   = 4
  +                     iv_text_tag = '' ).
  +    generate_extend( iv_token    = 'T'
  +                     iv_offset   = 4
  +                     iv_length   = 1
  +                     iv_text_tag = '|' ).
  +    generate_extend( iv_token    = '.'
  +                     iv_offset   = 5
  +                     iv_length   = 5
  +                     iv_text_tag = '' ).
  +    generate_extend( iv_token    = 'T'
  +                     iv_offset   = 10
  +                     iv_length   = 1
  +                     iv_text_tag = '}' ).
  +    generate_extend( iv_token    = '.'
  +                     iv_offset   = 11
  +                     iv_length   = 2
  +                     iv_text_tag = '' ).
  +    generate_extend( iv_token    = 'K'
  +                     iv_offset   = 13
  +                     iv_length   = 1
  +                     iv_text_tag = '' ).
  +    generate_extend( iv_token    = '.'
  +                     iv_offset   = 14
  +                     iv_length   = 2
  +                     iv_text_tag = '' ).
  +    generate_extend( iv_token    = 'T'
  +                     iv_offset   = 16
  +                     iv_length   = 1
  +                     iv_text_tag = '}' ).
  +    generate_extend( iv_token    = '.'
  +                     iv_offset   = 17
  +                     iv_length   = 1
  +                     iv_text_tag = '' ).
   
       do_test( iv_line = lv_line iv_filename = '*.abap' ).
   
  
positive.code:     lv_line = 'constants: lc_var type string value ''simpletext data simpletext''.'. "#EC NOTEXT
  
      " Generate table with expected values after parsing
      _generate_parse 'K' 0  9.
      _generate_parse 'K' 18 4.
      _generate_parse 'K' 30 5.
      _generate_parse 'T' 36 1.
      _generate_parse 'K' 48 4.
      _generate_parse 'T' 63 1.
  
      " Generate table with expected values after ordering
      _generate_order 'K' 0  9  ''.
      _generate_order 'K' 18 4  ''.
      _generate_order 'K' 30 5  ''.
      _generate_order 'T' 36 28 ''''.
  
      " Generate table with expected values after ordering
      _generate_extend 'K' 0  9  ''.
      _generate_extend '.' 9  9  ''.
      _generate_extend 'K' 18 4  ''.
      _generate_extend '.' 22 8  ''.
      _generate_extend 'K' 30 5  ''.
      _generate_extend '.' 35 1  ''.
      _generate_extend 'T' 36 28 ''''.
      _generate_extend '.' 64 1  ''.
  
      do_test( iv_line = lv_line iv_filename = '*.abap' ).
  
  
negative.code:     lv_line = 'SELECT * FROM foo'.                          "#EC NOTEXT
  
      " Generate table with expected values after parsing
      generate_parse( iv_token  = 'K'
                      iv_offset = 0
                      iv_length = 6 ).
  
      generate_parse( iv_token  = 'K'
                      iv_offset = 9
                      iv_length = 4 ).
  
      " Generate table with expected values after ordering
      generate_order( iv_token    = 'K'
                      iv_offset   = 0
                      iv_length   = 6
                      iv_text_tag = '' ).
      generate_order( iv_token    = 'K'
                      iv_offset   = 9
                      iv_length   = 4
                      iv_text_tag = '' ).
  
      " Generate table with expected values after extending
      generate_extend( iv_token    = 'K'
                       iv_offset   = 0
                       iv_length   = 6
                       iv_text_tag = '' ).
      generate_extend( iv_token    = '.'
                       iv_offset   = 6
                       iv_length   = 3
                       iv_text_tag = '' ).
      generate_extend( iv_token    = 'K'
                       iv_offset   = 9
                       iv_length   = 4
                       iv_text_tag = '' ).
      generate_extend( iv_token    = '.'
                       iv_offset   = 13
                       iv_length   = 4
                       iv_text_tag = '' ).
  
      do_test( iv_line = lv_line iv_filename = '*.abap' ).
  
  