UNPKG

@abaplint/core

Version:
14 lines 635 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FieldSymbol = void 0; const combi_1 = require("../combi"); const tokens_1 = require("../../1_lexer/tokens"); class FieldSymbol extends combi_1.Expression { getRunnable() { // todo, this only allows one dash in the name const dashes = (0, combi_1.seq)((0, combi_1.regex)(/^<[\w\/%$\*]+$/), (0, combi_1.tok)(tokens_1.Dash), (0, combi_1.regex)(/^[\w\/%$\*]+>$/)); return (0, combi_1.altPrio)((0, combi_1.regex)(/^<[\w\/%$\*\?]+>$/), dashes); } } exports.FieldSymbol = FieldSymbol; //# sourceMappingURL=field_symbol.js.map