mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 20:03:20 +08:00
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:
parent
79a1a667c6
commit
31a912b124
|
@ -116,7 +116,7 @@ CLASS ZCL_ABAPGIT_SYNTAX_HIGHLIGHTER IMPLEMENTATION.
|
|||
" Create instance of highighter dynamically dependent on syntax type
|
||||
IF iv_filename CP '*.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.
|
||||
ELSE.
|
||||
CLEAR ro_instance.
|
||||
|
|
Loading…
Reference in New Issue
Block a user