site/node_modules/shiki/dist/langs/apl.mjs

19 lines
31 KiB
JavaScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
import html from './html.mjs';
import xml from './xml.mjs';
import css from './css.mjs';
import javascript from './javascript.mjs';
import json from './json.mjs';
import './java.mjs';
const lang = Object.freeze({ "displayName": "APL", "fileTypes": ["apl", "apla", "aplc", "aplf", "apli", "apln", "aplo", "dyalog", "dyapp", "mipage"], "firstLineMatch": "(?x)\n# APL symbols\n[\u2336-\u237A]\n|\n\n# Hashbang\n^\\#!.*(?:\\s|\\/|(?<=!)\\b)\n (?:gnu[-._]?apl|aplx?|dyalog)\n(?:$|\\s)\n|\n\n# Modeline\n(?i:\n # Emacs\n -\\*-(?:\\s*(?=[^:;\\s]+\\s*-\\*-)|(?:.*?[;\\s]|(?<=-\\*-))mode\\s*:\\s*)\n apl\n (?=[\\s;]|(?<![-*])-\\*-).*?-\\*-\n\n |\n\n # Vim\n (?:(?:\\s|^)vi(?:m[<=>]?\\d+|m)?|\\sex)(?=:(?=\\s*set?\\s[^\\n:]+:)|:(?!\\s* set?\\s))(?:(?:\\s|\\s*:\\s*)\\w*(?:\\s*=(?:[^\\n\\\\\\s]|\\\\.)*)?)*[\\s:](?:filetype|ft|syntax)\\s*=\n apl\n (?=\\s|:|$)\n)", "foldingStartMarker": "{", "foldingStopMarker": "}", "name": "apl", "patterns": [{ "match": "\\A#!.*$", "name": "comment.line.shebang.apl" }, { "include": "#heredocs" }, { "include": "#main" }, { "begin": "^\\s*((\\))OFF|(\\])NEXTFILE)\\b(.*)$", "beginCaptures": { "1": { "name": "entity.name.command.eof.apl" }, "2": { "name": "punctuation.definition.command.apl" }, "3": { "name": "punctuation.definition.command.apl" }, "4": { "patterns": [{ "include": "#comment" }] } }, "contentName": "text.embedded.apl", "end": "(?=N)A" }, { "begin": "\\(", "beginCaptures": { "0": { "name": "punctuation.round.bracket.begin.apl" } }, "end": "\\)", "endCaptures": { "0": { "name": "punctuation.round.bracket.end.apl" } }, "name": "meta.round.bracketed.group.apl", "patterns": [{ "include": "#main" }] }, { "begin": "\\[", "beginCaptures": { "0": { "name": "punctuation.square.bracket.begin.apl" } }, "end": "\\]", "endCaptures": { "0": { "name": "punctuation.square.bracket.end.apl" } }, "name": "meta.square.bracketed.group.apl", "patterns": [{ "include": "#main" }] }, { "begin": "^\\s*((\\))\\S+)", "beginCaptures": { "1": { "name": "entity.name.command.apl" }, "2": { "name": "punctuation.definition.command.apl" } }, "end": "$", "name": "meta.system.command.apl", "patterns": [{ "include": "#command-arguments" }, { "include": "#command-switches" }, { "include": "#main" }] }, { "begin": "^\\s*((\\])\\S+)", "beginCaptures": { "1": { "name": "entity.name.command.apl" }, "2": { "name": "punctuation.definition.command.apl" } }, "end": "$", "name": "meta.user.command.apl", "patterns": [{ "include": "#command-arguments" }, { "include": "#command-switches" }, { "include": "#main" }] }], "repository": { "class": { "patterns": [{ "begin": "(?x)\n(?<=\\s|^)\n((:)Class)\n\\s+\n(\n'[^']*'?\n|\n[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]\n[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]*\n)\n\\s*\n(\n(:)\n\\s*\n(?:\n(\n'[^']*'?\n|\n[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]\n[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]*\n)\n\\s*\n)?\n)?\n(.*?)$", "beginCaptures": { "0": { "name": "meta.class.apl" }, "1": { "name": "keyword.control.class.apl" }, "2": { "name": "punctuation.definition.class.apl" }, "3": { "name": "entity.name.type.class.apl", "patterns": [{ "include": "#strings" }] }, "4": { "name": "entity.other.inherited-class.apl" }, "5": { "name": "punctuation.separator.inheritance.apl" }, "6": { "patterns": [{ "include": "#strings" }] }, "7": { "name": "entity.other.class.interfaces.apl", "patterns": [{ "include": "#csv" }] } }, "end": "(?<=\\s|^)((:)EndClass)(?=\\b)", "endCaptures": { "1": { "name": "keyword.control.class.apl" }, "2": { "name": "punctuation.definition.class.apl" } }, "patterns": [{ "begin": "(?<=\\s|^)(:)Field(?=\\s)", "beginCaptures": { "0": { "name": "keyword.control.field.apl" }, "1": { "name": "punctuation.definition.field.apl" } }, "end": "\\s*(\u2190.*)?(?:$|(?=\u235D))", "endCaptures": { "0": { "name": "entity.other.initial-value.apl" }, "1": { "patterns": [{ "include": "#main" }] } }, "name": "meta.field.apl", "patterns": [{ "match": "(?<=\\s|^)Public(?=\\s|$)", "name": "storage.modifier.access.public.apl" }, { "match": "(?<=\\s|^)Private(?=\\s|$)", "name": "storage.modifier.access.private.apl" }, { "match": "(?<=\\s|^)Shared
var apl = [
...html,
...xml,
...css,
...javascript,
...json,
lang
];
export { apl as default };