@abaplint/cli 2.113.202 → 2.113.203

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.
Files changed (2) hide show
  1. package/build/cli.js +32 -34
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -1250,19 +1250,17 @@ const virtual_position_1 = __webpack_require__(/*! ../../virtual_position */ "./
1250
1250
  const tokens_1 = __webpack_require__(/*! ./tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
1251
1251
  const lexer_buffer_1 = __webpack_require__(/*! ./lexer_buffer */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/lexer_buffer.js");
1252
1252
  const lexer_stream_1 = __webpack_require__(/*! ./lexer_stream */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/lexer_stream.js");
1253
+ const ModeNormal = 1;
1254
+ const ModePing = 2;
1255
+ const ModeStr = 3;
1256
+ const ModeTemplate = 4;
1257
+ const ModeComment = 5;
1258
+ const ModePragma = 6;
1253
1259
  class Lexer {
1254
- constructor() {
1255
- this.ModeNormal = 1;
1256
- this.ModePing = 2;
1257
- this.ModeStr = 3;
1258
- this.ModeTemplate = 4;
1259
- this.ModeComment = 5;
1260
- this.ModePragma = 6;
1261
- }
1262
1260
  run(file, virtual) {
1263
1261
  this.virtual = virtual;
1264
1262
  this.tokens = [];
1265
- this.m = this.ModeNormal;
1263
+ this.m = ModeNormal;
1266
1264
  this.process(file.getRaw());
1267
1265
  return { file, tokens: this.tokens };
1268
1266
  }
@@ -1288,13 +1286,13 @@ class Lexer {
1288
1286
  pos = new virtual_position_1.VirtualPosition(this.virtual, pos.getRow(), pos.getCol());
1289
1287
  }
1290
1288
  let tok = undefined;
1291
- if (this.m === this.ModeComment) {
1289
+ if (this.m === ModeComment) {
1292
1290
  tok = new tokens_1.Comment(pos, s);
1293
1291
  }
1294
- else if (this.m === this.ModePing || this.m === this.ModeStr) {
1292
+ else if (this.m === ModePing || this.m === ModeStr) {
1295
1293
  tok = new tokens_1.StringToken(pos, s);
1296
1294
  }
1297
- else if (this.m === this.ModeTemplate) {
1295
+ else if (this.m === ModeTemplate) {
1298
1296
  const first = s.charAt(0);
1299
1297
  const last = s.charAt(s.length - 1);
1300
1298
  if (first === "|" && last === "|") {
@@ -1487,35 +1485,35 @@ class Lexer {
1487
1485
  const buf = this.buffer.add(current);
1488
1486
  const ahead = this.stream.nextChar();
1489
1487
  const aahead = this.stream.nextNextChar();
1490
- if (this.m === this.ModeNormal) {
1488
+ if (this.m === ModeNormal) {
1491
1489
  if (splits[ahead]) {
1492
1490
  this.add();
1493
1491
  }
1494
1492
  else if (ahead === "'") {
1495
1493
  // start string
1496
1494
  this.add();
1497
- this.m = this.ModeStr;
1495
+ this.m = ModeStr;
1498
1496
  }
1499
1497
  else if (ahead === "|" || ahead === "}") {
1500
1498
  // start template
1501
1499
  this.add();
1502
- this.m = this.ModeTemplate;
1500
+ this.m = ModeTemplate;
1503
1501
  }
1504
1502
  else if (ahead === "`") {
1505
1503
  // start ping
1506
1504
  this.add();
1507
- this.m = this.ModePing;
1505
+ this.m = ModePing;
1508
1506
  }
1509
1507
  else if (aahead === "##") {
1510
1508
  // start pragma
1511
1509
  this.add();
1512
- this.m = this.ModePragma;
1510
+ this.m = ModePragma;
1513
1511
  }
1514
1512
  else if (ahead === "\""
1515
1513
  || (ahead === "*" && current === "\n")) {
1516
1514
  // start comment
1517
1515
  this.add();
1518
- this.m = this.ModeComment;
1516
+ this.m = ModeComment;
1519
1517
  }
1520
1518
  else if (ahead === "@" && buf.trim().length === 0) {
1521
1519
  this.add();
@@ -1536,12 +1534,12 @@ class Lexer {
1536
1534
  this.add();
1537
1535
  }
1538
1536
  }
1539
- else if (this.m === this.ModePragma && (ahead === "," || ahead === ":" || ahead === "." || ahead === " " || ahead === "\n")) {
1537
+ else if (this.m === ModePragma && (ahead === "," || ahead === ":" || ahead === "." || ahead === " " || ahead === "\n")) {
1540
1538
  // end of pragma
1541
1539
  this.add();
1542
- this.m = this.ModeNormal;
1540
+ this.m = ModeNormal;
1543
1541
  }
1544
- else if (this.m === this.ModePing
1542
+ else if (this.m === ModePing
1545
1543
  && buf.length > 1
1546
1544
  && current === "`"
1547
1545
  && aahead !== "``"
@@ -1550,26 +1548,26 @@ class Lexer {
1550
1548
  // end of ping
1551
1549
  this.add();
1552
1550
  if (ahead === `"`) {
1553
- this.m = this.ModeComment;
1551
+ this.m = ModeComment;
1554
1552
  }
1555
1553
  else {
1556
- this.m = this.ModeNormal;
1554
+ this.m = ModeNormal;
1557
1555
  }
1558
1556
  }
1559
- else if (this.m === this.ModeTemplate
1557
+ else if (this.m === ModeTemplate
1560
1558
  && buf.length > 1
1561
1559
  && (current === "|" || current === "{")
1562
1560
  && (this.stream.prevChar() !== "\\" || this.stream.prevPrevChar() === "\\\\")) {
1563
1561
  // end of template
1564
1562
  this.add();
1565
- this.m = this.ModeNormal;
1563
+ this.m = ModeNormal;
1566
1564
  }
1567
- else if (this.m === this.ModeTemplate
1565
+ else if (this.m === ModeTemplate
1568
1566
  && ahead === "}"
1569
1567
  && current !== "\\") {
1570
1568
  this.add();
1571
1569
  }
1572
- else if (this.m === this.ModeStr
1570
+ else if (this.m === ModeStr
1573
1571
  && current === "'"
1574
1572
  && buf.length > 1
1575
1573
  && aahead !== "''"
@@ -1578,17 +1576,17 @@ class Lexer {
1578
1576
  // end of string
1579
1577
  this.add();
1580
1578
  if (ahead === "\"") {
1581
- this.m = this.ModeComment;
1579
+ this.m = ModeComment;
1582
1580
  }
1583
1581
  else {
1584
- this.m = this.ModeNormal;
1582
+ this.m = ModeNormal;
1585
1583
  }
1586
1584
  }
1587
- else if (ahead === "\n" && this.m !== this.ModeTemplate) {
1585
+ else if (ahead === "\n" && this.m !== ModeTemplate) {
1588
1586
  this.add();
1589
- this.m = this.ModeNormal;
1587
+ this.m = ModeNormal;
1590
1588
  }
1591
- else if (this.m === this.ModeTemplate && current === "\n") {
1589
+ else if (this.m === ModeTemplate && current === "\n") {
1592
1590
  this.add();
1593
1591
  }
1594
1592
  if (!this.stream.advance()) {
@@ -53392,7 +53390,7 @@ class Table extends _abstract_object_1.AbstractObject {
53392
53390
  }
53393
53391
  getAllowedNaming() {
53394
53392
  let length = 30;
53395
- const regex = /^((\/[A-Z_\d]{3,8}\/)|[a-zA-Z0-9]{3})\w+$/;
53393
+ const regex = /^((\/[A-Z_\d]{3,8}\/)|[a-zA-Z0-9]{3}|CI_)\w+$/;
53396
53394
  if (this.getTableCategory() === TableCategory.Transparent) {
53397
53395
  length = 16;
53398
53396
  }
@@ -55001,7 +54999,7 @@ class Registry {
55001
54999
  }
55002
55000
  static abaplintVersion() {
55003
55001
  // magic, see build script "version.sh"
55004
- return "2.113.202";
55002
+ return "2.113.203";
55005
55003
  }
55006
55004
  getDDICReferences() {
55007
55005
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.202",
3
+ "version": "2.113.203",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.113.202",
41
+ "@abaplint/core": "^2.113.203",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",