Use xml syntax highlighter for html as well (#3251)

I came upon a `w3ht.data.html` object without syntax highlighting. We can reuse the xml highlighter for html.

Co-authored-by: Lars Hvam <larshp@hotmail.com>
This commit is contained in:
Frederik Hudák 2020-03-11 16:46:21 +01:00 committed by GitHub
parent 79a1a667c6
commit 31a912b124
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,7 +116,7 @@ CLASS ZCL_ABAPGIT_SYNTAX_HIGHLIGHTER IMPLEMENTATION.
" Create instance of highighter dynamically dependent on syntax type " Create instance of highighter dynamically dependent on syntax type
IF iv_filename CP '*.abap'. IF iv_filename CP '*.abap'.
CREATE OBJECT ro_instance TYPE zcl_abapgit_syntax_abap. CREATE OBJECT ro_instance TYPE zcl_abapgit_syntax_abap.
ELSEIF iv_filename CP '*.xml'. ELSEIF iv_filename CP '*.xml' OR iv_filename CP '*.html'.
CREATE OBJECT ro_instance TYPE zcl_abapgit_syntax_xml. CREATE OBJECT ro_instance TYPE zcl_abapgit_syntax_xml.
ELSE. ELSE.
CLEAR ro_instance. CLEAR ro_instance.