7 lines
8.1 KiB
JavaScript
7 lines
8.1 KiB
JavaScript
|
const lang = Object.freeze({ "displayName": "Systemd Units", "name": "systemd", "patterns": [{ "include": "#comments" }, { "begin": "^\\s*(InaccessableDirectories|InaccessibleDirectories|ReadOnlyDirectories|ReadWriteDirectories|Capabilities|TableId|UseDomainName|IPv6AcceptRouterAdvertisements|SysVStartPriority|StartLimitInterval|RequiresOverridable|RequisiteOverridable|PropagateReloadTo|PropagateReloadFrom|OnFailureIsolate|BindTo)\\s*(=)[ \\t]*", "beginCaptures": { "1": { "name": "invalid.deprecated" }, "2": { "name": "keyword.operator.assignment" } }, "end": "(?<!\\\\)\\n", "patterns": [{ "include": "#comments" }, { "include": "#variables" }, { "include": "#quotedString" }, { "include": "#booleans" }, { "include": "#timeSpans" }, { "include": "#sizes" }, { "include": "#numbers" }] }, { "begin": "^\\s*(Environment)\\s*(=)[ \\t]*", "beginCaptures": { "1": { "name": "entity.name.tag" }, "2": { "name": "keyword.operator.assignment" } }, "end": "(?<!\\\\)\\n", "name": "meta.config-entry.systemd", "patterns": [{ "include": "#comments" }, { "captures": { "1": { "name": "variable.parameter" }, "2": { "name": "keyword.operator.assignment" } }, "match": `(?<=\\G|[\\s"'])([A-Za-z0-9\\_]+)(=)(?=[^\\s"'])` }, { "include": "#variables" }, { "include": "#booleans" }, { "include": "#numbers" }] }, { "begin": "^\\s*(OnCalendar)\\s*(=)[ \\t]*", "beginCaptures": { "1": { "name": "entity.name.tag" }, "2": { "name": "keyword.operator.assignment" } }, "end": "(?<!\\\\)\\n", "name": "meta.config-entry.systemd", "patterns": [{ "include": "#comments" }, { "include": "#variables" }, { "include": "#calendarShorthands" }, { "include": "#numbers" }] }, { "begin": "^\\s*(CapabilityBoundingSet|AmbientCapabilities|AddCapability|DropCapability)\\s*(=)[ \\t]*", "beginCaptures": { "1": { "name": "entity.name.tag" }, "2": { "name": "keyword.operator.assignment" } }, "end": "(?<!\\\\)\\n", "name": "meta.config-entry.systemd", "patterns": [{ "include": "#comments" }, { "include": "#capabilities" }] }, { "begin": "^\\s*(Restart)\\s*(=)[ \\t]*", "beginCaptures": { "1": { "name": "entity.name.tag" }, "2": { "name": "keyword.operator.assignment" } }, "end": "(?<!\\\\)\\n", "name": "meta.config-entry.systemd", "patterns": [{ "include": "#comments" }, { "include": "#variables" }, { "include": "#restartOptions" }] }, { "begin": "^\\s*(Type)\\s*(=)[ \\t]*", "beginCaptures": { "1": { "name": "entity.name.tag" }, "2": { "name": "keyword.operator.assignment" } }, "end": "(?<!\\\\)\\n", "name": "meta.config-entry.systemd", "patterns": [{ "include": "#comments" }, { "include": "#variables" }, { "include": "#typeOptions" }] }, { "begin": "^\\s*(Exec(?:Start(?:Pre|Post)?|Reload|Stop(?:Post)?))\\s*(=)[ \\t]*", "beginCaptures": { "1": { "name": "entity.name.tag" }, "2": { "name": "keyword.operator.assignment" } }, "end": "(?<!\\\\)\\n", "name": "meta.config-entry.systemd", "patterns": [{ "include": "#comments" }, { "include": "#executablePrefixes" }, { "include": "#variables" }, { "include": "#quotedString" }, { "include": "#booleans" }, { "include": "#numbers" }] }, { "begin": "^\\s*([\\w\\-\\.]+)\\s*(=)[ \\t]*", "beginCaptures": { "1": { "name": "entity.name.tag" }, "2": { "name": "keyword.operator.assignment" } }, "end": "(?<!\\\\)\\n", "name": "meta.config-entry.systemd", "patterns": [{ "include": "#comments" }, { "include": "#variables" }, { "include": "#quotedString" }, { "include": "#booleans" }, { "include": "#timeSpans" }, { "include": "#sizes" }, { "include": "#numbers" }] }, { "include": "#sections" }], "repository": { "booleans": { "patterns": [{ "match": "\\b(?<![-\\/\\.])(true|false|on|off|yes|no)(?![-\\/\\.])\\b", "name": "constant.language" }] }, "calendarShorthands": { "patterns": [{ "match": "\\b(?:minute|hour|dai|month|week|quarter|semiannual)ly\\b", "name": "constant.language" }] }, "capabilities": { "patterns": [{ "match": "\\b(?:CAP_(?:AUDIT_CONTROL|AUDIT_READ|AUDIT_WRITE|BLOCK_SUSPEND|BPF|CHECKPOINT_RESTORE|CHOWN|DAC_OVERRIDE|DAC_READ_SEARCH|FOWNER|FSETID|IPC_LOCK|IPC_OWNER|KILL|LEASE|LINUX_IMMUTABLE|MAC_ADMIN|MAC_OVERRIDE|MKNOD|NET_ADMIN|NET_BIND_SE
|
||
|
var systemd = [
|
||
|
lang
|
||
|
];
|
||
|
|
||
|
export { systemd as default };
|