@abaplint/core
Version:
abaplint - Core API
13 lines • 638 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DefinitionName = void 0;
const combi_1 = require("../combi");
const tokens_1 = require("../../1_lexer/tokens");
class DefinitionName extends combi_1.Expression {
getRunnable() {
const r = (0, combi_1.regex)(/^&|&?((\w*\/\w+\/)|(\w*\/\w+\/)?[\w\*$%\?#]+)$/);
return (0, combi_1.seq)(r, (0, combi_1.starPrio)((0, combi_1.seq)((0, combi_1.tok)(tokens_1.Dash), (0, combi_1.optPrio)(r))), (0, combi_1.optPrio)((0, combi_1.tok)(tokens_1.DashW)));
}
}
exports.DefinitionName = DefinitionName;
//# sourceMappingURL=definition_name.js.map