-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Describe the bug
As you see in https://github.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/AVAILABLE_LANGUAGES_PRISM.MD the underlying library supports ABAP (https://prismjs.com/#supported-languages), you did not include it into your enum for PRISM.
Could you please add this in the next version?
Expected behavior
Highlight ABAP code
Minimal reproducible example
You can use this code example for testing
REPORT z_ram_test_csv_to_itab_regex.
* this is a comment by ramtiwari.
* select '100' from something or just multiply to check that * does not comment
a = 1 * 10.
DATA : g_input TYPE string.
DATA : l_tab TYPE c value cl_abap_char_utilities=>HORIZONTAL_TAB.
DATA : l_regex type string.
g_input = '"F1",F2,""Hello", "How" are "you"","F3"'.
REPLACE ALL OCCURRENCES OF
REGEX ',(?=(?:[^"]*$)|(?:[^"]*"[^"]*"[^"]*)*$)'
IN g_input WITH l_tab.
REPLACE FIRST OCCURRENCE OF
REGEX '^"'
IN g_input WITH ' '.
CONCATENATE '"' l_tab '"|"' l_tab '|' l_tab '"' into l_regex.
REPLACE ALL OCCURRENCES OF
REGEX l_regex " '"l_tab"|"l_tab|l_tab"'
IN g_input WITH l_tab.
REPLACE ALL OCCURRENCES OF '""' IN g_input
WITH '"'. "Added during testing
REPLACE ALL OCCURRENCES OF REGEX '"$' IN g_input
WITH ' '.
WRITE :/ g_input.Add-on Version
1.0.0
Vaadin Version
24.7.0
Additional information
No response
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
To Do