From 8a3b21e2bf84806745b9c2defef6235c91e8a22a Mon Sep 17 00:00:00 2001 From: Marc Bernard <59966492+mbtools@users.noreply.github.com> Date: Mon, 8 Nov 2021 09:33:40 -0500 Subject: [PATCH 1/4] Add support for ABAP and ABAP CDS languages ABAP https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abencomment.htm ABAP CDS https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abencds_general_syntax_rules.htm Closes #85 --- syntax.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/syntax.json b/syntax.json index 7fd7f6c..e9c880f 100644 --- a/syntax.json +++ b/syntax.json @@ -484,5 +484,34 @@ "pattern": "//" } ] + }, + { + "language": "ABAP", + "markers": [ + { + "type": "line", + "pattern": "\"" + }, + { + "type": "line", + "pattern": "*" + } + ] + }, + { + "language": "ABAP CDS", + "markers": [ + { + "type": "line", + "pattern": "//" + }, + { + "type": "block", + "pattern": { + "start": "/\\*", + "end": "\\*/" + } + } + ] } ] From 816fe1d4b14e8fca4cdebadd945d1d855a8c8d6b Mon Sep 17 00:00:00 2001 From: Marc Bernard <59966492+mbtools@users.noreply.github.com> Date: Mon, 8 Nov 2021 12:07:45 -0500 Subject: [PATCH 2/4] Escape star --- syntax.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax.json b/syntax.json index e9c880f..77fd405 100644 --- a/syntax.json +++ b/syntax.json @@ -494,7 +494,7 @@ }, { "type": "line", - "pattern": "*" + "pattern": "\*" } ] }, From 907db30e7f9c8827a8d2e38db64c203e755ccc18 Mon Sep 17 00:00:00 2001 From: Marc Bernard <59966492+mbtools@users.noreply.github.com> Date: Mon, 8 Nov 2021 12:09:44 -0500 Subject: [PATCH 3/4] Update readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 1c5578f..c24c5fc 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,8 @@ There are additional inputs if you want to be able to assign issues to projects. ## Supported Languages +* ABAP +* ABAP CDS * AutoHotkey * C * C++ From ebee9c76f10df50ee4be58fdd1e8d0b36e195023 Mon Sep 17 00:00:00 2001 From: Alastair Mooney Date: Tue, 9 Nov 2021 12:03:27 +0000 Subject: [PATCH 4/4] Update syntax.json --- syntax.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax.json b/syntax.json index 77fd405..a1f6e0f 100644 --- a/syntax.json +++ b/syntax.json @@ -494,7 +494,7 @@ }, { "type": "line", - "pattern": "\*" + "pattern": "\\*" } ] },