Skip to content

Missing language ABAP for PRISM #5

Description

@mlaggner

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 cvalue cl_abap_char_utilities=>HORIZONTAL_TAB.
DATA : l_regex type string.
g_input ='"F1",F2,""Hello", "How" are "you"","F3"'.
REPLACEALLOCCURRENCES OFREGEX',(?=(?:[^"]*$)|(?:[^"]*"[^"]*"[^"]*)*$)'IN g_input WITH l_tab.
REPLACEFIRSTOCCURRENCE OFREGEX'^"'IN g_input WITH' '.
CONCATENATE'"' l_tab '"|"' l_tab '|' l_tab '"'into l_regex.
REPLACEALLOCCURRENCES OFREGEX l_regex " '"l_tab"|"l_tab|l_tab"'IN g_input WITH l_tab.
REPLACEALLOCCURRENCES OF'""'IN g_input
 WITH'"'. "Added during testingREPLACEALLOCCURRENCES OFREGEX'"$'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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    To Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions