mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
Small fixes
Implemented substring.
This commit is contained in:
parent
1520299664
commit
2a73d9f618
|
@ -284,13 +284,9 @@ CLASS lcl_gui_page_diff IMPLEMENTATION.
|
||||||
IF is_diff-mod = c_mod-remote. " Remote file leading changes
|
IF is_diff-mod = c_mod-remote. " Remote file leading changes
|
||||||
lv_local = lo_highlighter->process_line( <ls_diff>-old ).
|
lv_local = lo_highlighter->process_line( <ls_diff>-old ).
|
||||||
lv_remote = lo_highlighter->process_line( <ls_diff>-new ).
|
lv_remote = lo_highlighter->process_line( <ls_diff>-new ).
|
||||||
* lv_local = escape( val = <ls_diff>-old format = cl_abap_format=>e_html_attr ).
|
|
||||||
* lv_remote = escape( val = <ls_diff>-new format = cl_abap_format=>e_html_attr ).
|
|
||||||
ELSE. " Local leading changes or both were modified
|
ELSE. " Local leading changes or both were modified
|
||||||
lv_local = lo_highlighter->process_line( <ls_diff>-new ).
|
lv_local = lo_highlighter->process_line( <ls_diff>-new ).
|
||||||
lv_remote = lo_highlighter->process_line( <ls_diff>-old ).
|
lv_remote = lo_highlighter->process_line( <ls_diff>-old ).
|
||||||
* lv_local = escape( val = <ls_diff>-new format = cl_abap_format=>e_html_attr ).
|
|
||||||
* lv_remote = escape( val = <ls_diff>-old format = cl_abap_format=>e_html_attr ).
|
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
get_line_hl( EXPORTING iv_mod = is_diff-mod
|
get_line_hl( EXPORTING iv_mod = is_diff-mod
|
||||||
|
|
|
@ -243,7 +243,7 @@ CLASS lcl_code_highlighter IMPLEMENTATION.
|
||||||
ls_match-length = <result>-length.
|
ls_match-length = <result>-length.
|
||||||
|
|
||||||
IF ls_match-token = c_token-text.
|
IF ls_match-token = c_token-text.
|
||||||
ls_match-text_tag = iv_line+ls_match-offset(ls_match-length).
|
ls_match-text_tag = substring( val = iv_line off = ls_match-offset len = ls_match-length ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
APPEND ls_match TO rt_matches.
|
APPEND ls_match TO rt_matches.
|
||||||
|
@ -343,7 +343,7 @@ CLASS lcl_code_highlighter IMPLEMENTATION.
|
||||||
<match> TYPE ty_match.
|
<match> TYPE ty_match.
|
||||||
|
|
||||||
LOOP AT it_matches ASSIGNING <match>.
|
LOOP AT it_matches ASSIGNING <match>.
|
||||||
lv_chunk = iv_line+<match>-offset(<match>-length).
|
lv_chunk = substring( val = iv_line off = <match>-offset len = <match>-length ).
|
||||||
|
|
||||||
CASE <match>-token.
|
CASE <match>-token.
|
||||||
WHEN c_token-keyword.
|
WHEN c_token-keyword.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user