@abaplint/core 2.120.61 → 2.120.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -43,9 +43,8 @@ const BUFS = new Set([
|
|
|
43
43
|
CH_DOT, CH_COMMA, CH_COLON, 40 /* ( */, 41 /* ) */, 91 /* [ */,
|
|
44
44
|
93 /* ] */, 43 /* + */, CH_AT
|
|
45
45
|
]);
|
|
46
|
-
// characters
|
|
47
|
-
//
|
|
48
|
-
// note that "(" is allowed, ie. text elements like 'text'(001)
|
|
46
|
+
// characters treated as separators after ping literals and string templates.
|
|
47
|
+
// Single-quoted text literals always end at their closing quote.
|
|
49
48
|
const AFTER_LITERAL = new Set([
|
|
50
49
|
EOF, CH_SPACE, CH_TAB, CH_NL, CH_DOT, CH_COMMA, CH_COLON, CH_DQUOTE,
|
|
51
50
|
40 /* ( */, 41 /* ) */, 91 /* [ */, 93 /* ] */
|
|
@@ -363,9 +362,7 @@ class Lexer {
|
|
|
363
362
|
&& ahead !== CH_QUOTE
|
|
364
363
|
&& this.buffer.countIsEven(CH_QUOTE)) {
|
|
365
364
|
// end of string
|
|
366
|
-
|
|
367
|
-
this.add();
|
|
368
|
-
}
|
|
365
|
+
this.add();
|
|
369
366
|
if (ahead === CH_DQUOTE) {
|
|
370
367
|
this.m = ModeComment;
|
|
371
368
|
}
|
|
@@ -200,7 +200,8 @@ class ExpandMacros {
|
|
|
200
200
|
for (const input of inputs) {
|
|
201
201
|
const search = "&" + i;
|
|
202
202
|
const reg = new RegExp(search, "g");
|
|
203
|
-
|
|
203
|
+
// a function replacement: "$`" and "$'" in the argument are text, not patterns
|
|
204
|
+
str = str.replace(reg, () => input);
|
|
204
205
|
i++;
|
|
205
206
|
}
|
|
206
207
|
const file = new memory_file_1.MemoryFile("expand_macros.abap.prog", str);
|
|
@@ -22,7 +22,7 @@ class ModifyEntities {
|
|
|
22
22
|
const mapped = (0, combi_1.seq)("MAPPED", expressions_1.Target);
|
|
23
23
|
const reported = (0, combi_1.seq)("REPORTED", expressions_1.Target);
|
|
24
24
|
const end = (0, combi_1.optPrio)((0, combi_1.per)(failed, result, mapped, reported));
|
|
25
|
-
const entities = (0, combi_1.seq)((0, combi_1.optPrio)("AUGMENTING"), "ENTITIES OF", expressions_1.NamespaceSimpleName, (0, combi_1.
|
|
25
|
+
const entities = (0, combi_1.seq)((0, combi_1.optPrio)("AUGMENTING"), "ENTITIES OF", expressions_1.NamespaceSimpleName, (0, combi_1.optPrio)((0, combi_1.altPrio)("IN LOCAL MODE", (0, combi_1.seq)((0, combi_1.opt)("FORWARDING"), "PRIVILEGED"))), (0, combi_1.plusPrio)((0, combi_1.seq)("ENTITY", expressions_1.NamespaceSimpleName, (0, combi_1.plus)(operation))));
|
|
26
26
|
const dynamic = (0, combi_1.seq)("ENTITIES", (0, combi_1.optPrio)((0, combi_1.altPrio)("IN LOCAL MODE", (0, combi_1.seq)((0, combi_1.opt)("FORWARDING"), "PRIVILEGED"))), "OPERATIONS", expressions_1.Source);
|
|
27
27
|
const create2 = (0, combi_1.seq)("CREATE", fieldsWith, (0, combi_1.opt)((0, combi_1.seq)("CREATE BY", expressions_1.EMLEntityPath, fieldsWith)));
|
|
28
28
|
const create3 = (0, combi_1.seq)("CREATE BY", expressions_1.EMLEntityPath, fieldsWith);
|
package/build/src/registry.js
CHANGED