@hamsterbase/evidra 0.0.0-stage → 0.1.0
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.
- package/README.md +2 -2
- package/bin/evidra.mjs +2 -0
- package/dist/sdk/main.d.ts +176 -0
- package/dist/sdk/main.js +1322 -0
- package/dist/service/cli.js +2645 -0
- package/dist/types/modules/core/contracts/comparison.d.ts +41 -0
- package/dist/types/modules/core/contracts/config.d.ts +19 -0
- package/dist/types/modules/core/contracts/context.d.ts +6 -0
- package/dist/types/modules/core/contracts/functions/addCase.d.ts +128 -0
- package/dist/types/modules/core/contracts/functions/addTask.d.ts +14 -0
- package/dist/types/modules/core/contracts/functions/approve.d.ts +8 -0
- package/dist/types/modules/core/contracts/functions/baselineChanges.d.ts +14 -0
- package/dist/types/modules/core/contracts/functions/compare.d.ts +14 -0
- package/dist/types/modules/core/contracts/functions/compareTask.d.ts +6 -0
- package/dist/types/modules/core/contracts/functions/compareTasks.d.ts +18 -0
- package/dist/types/modules/core/contracts/functions/deleteBaselineFile.d.ts +8 -0
- package/dist/types/modules/core/contracts/functions/finishTask.d.ts +8 -0
- package/dist/types/modules/core/contracts/functions/getBaseline.d.ts +10 -0
- package/dist/types/modules/core/contracts/functions/getBaselineChanges.d.ts +6 -0
- package/dist/types/modules/core/contracts/functions/getGitChanges.d.ts +6 -0
- package/dist/types/modules/core/contracts/functions/getGitDiff.d.ts +8 -0
- package/dist/types/modules/core/contracts/functions/getTaskCase.d.ts +23 -0
- package/dist/types/modules/core/contracts/functions/getTaskTree.d.ts +21 -0
- package/dist/types/modules/core/contracts/functions/gitChanges.d.ts +25 -0
- package/dist/types/modules/core/contracts/functions/index.d.ts +18 -0
- package/dist/types/modules/core/contracts/functions/listBaselines.d.ts +5 -0
- package/dist/types/modules/core/contracts/functions/listRuns.d.ts +7 -0
- package/dist/types/modules/core/contracts/functions/listTaskSummaries.d.ts +15 -0
- package/dist/types/modules/core/contracts/functions/listTasks.d.ts +15 -0
- package/dist/types/modules/core/contracts/functions/loadConfig.d.ts +5 -0
- package/dist/types/modules/core/contracts/functions/readProjectInfo.d.ts +5 -0
- package/dist/types/modules/core/contracts/functions/readTaskReport.d.ts +6 -0
- package/dist/types/modules/core/contracts/functions/resolveConfig.d.ts +6 -0
- package/dist/types/modules/core/contracts/functions/reviewBaselineChanges.d.ts +9 -0
- package/dist/types/modules/core/contracts/functions/reviewCodeChanges.d.ts +9 -0
- package/dist/types/modules/core/contracts/functions/taskRecords.d.ts +6 -0
- package/dist/types/modules/core/contracts/functions/updateBaseline.d.ts +20 -0
- package/dist/types/modules/core/contracts/git.d.ts +14 -0
- package/dist/types/modules/core/contracts/imageDiffPool.d.ts +5 -0
- package/dist/types/modules/core/contracts/index.d.ts +30 -0
- package/dist/types/modules/core/contracts/internal/compare.d.ts +14 -0
- package/dist/types/modules/core/contracts/internal/getBaseline.d.ts +10 -0
- package/dist/types/modules/core/contracts/internal/listTasks.d.ts +12 -0
- package/dist/types/modules/core/contracts/internal/taskRecords.d.ts +6 -0
- package/dist/types/modules/core/contracts/internal/updateBaseline.d.ts +20 -0
- package/dist/types/modules/core/contracts/model.d.ts +80 -0
- package/dist/types/modules/core/contracts/report.d.ts +52 -0
- package/dist/types/modules/core/contracts/repository.d.ts +5 -0
- package/dist/types/modules/core/contracts/requests.d.ts +23 -0
- package/dist/types/modules/core/contracts/scanCases.d.ts +15 -0
- package/dist/types/modules/core/contracts/shared.d.ts +6 -0
- package/dist/types/modules/core/contracts/snapshots.d.ts +6 -0
- package/dist/types/modules/core/contracts/taskRecord.d.ts +76 -0
- package/dist/types/modules/core/implementations/Functions/addCase.d.ts +4 -0
- package/dist/types/modules/core/implementations/Functions/addTask.d.ts +4 -0
- package/dist/types/modules/core/implementations/Functions/approve.d.ts +6 -0
- package/dist/types/modules/core/implementations/Functions/compare.d.ts +15 -0
- package/dist/types/modules/core/implementations/Functions/compareTask.d.ts +3 -0
- package/dist/types/modules/core/implementations/Functions/compareTasks.d.ts +5 -0
- package/dist/types/modules/core/implementations/Functions/deleteBaselineFile.d.ts +4 -0
- package/dist/types/modules/core/implementations/Functions/finishTask.d.ts +4 -0
- package/dist/types/modules/core/implementations/Functions/getBaseline.d.ts +4 -0
- package/dist/types/modules/core/implementations/Functions/getBaselineChanges.d.ts +4 -0
- package/dist/types/modules/core/implementations/Functions/getGitChanges.d.ts +3 -0
- package/dist/types/modules/core/implementations/Functions/getGitDiff.d.ts +3 -0
- package/dist/types/modules/core/implementations/Functions/getTaskCase.d.ts +5 -0
- package/dist/types/modules/core/implementations/Functions/getTaskTree.d.ts +5 -0
- package/dist/types/modules/core/implementations/Functions/listBaselines.d.ts +3 -0
- package/dist/types/modules/core/implementations/Functions/listTaskSummaries.d.ts +2 -0
- package/dist/types/modules/core/implementations/Functions/listTasks.d.ts +4 -0
- package/dist/types/modules/core/implementations/Functions/loadConfig.d.ts +3 -0
- package/dist/types/modules/core/implementations/Functions/readProjectInfo.d.ts +3 -0
- package/dist/types/modules/core/implementations/Functions/readTaskReport.d.ts +3 -0
- package/dist/types/modules/core/implementations/Functions/resolveConfig.d.ts +9 -0
- package/dist/types/modules/core/implementations/Functions/reviewBaselineChanges.d.ts +4 -0
- package/dist/types/modules/core/implementations/Functions/reviewCodeChanges.d.ts +4 -0
- package/dist/types/modules/core/implementations/Functions/taskRecords.d.ts +4 -0
- package/dist/types/modules/core/implementations/Functions/updateBaseline.d.ts +5 -0
- package/dist/types/modules/core/implementations/Utils/assertNamespace.d.ts +1 -0
- package/dist/types/modules/core/implementations/Utils/canonical.d.ts +1 -0
- package/dist/types/modules/core/implementations/Utils/createTaskId.d.ts +1 -0
- package/dist/types/modules/core/implementations/Utils/deletionAllowed.d.ts +2 -0
- package/dist/types/modules/core/implementations/Utils/download.d.ts +3 -0
- package/dist/types/modules/core/implementations/Utils/hash.d.ts +1 -0
- package/dist/types/modules/core/implementations/Utils/imageDiffPool.d.ts +18 -0
- package/dist/types/modules/core/implementations/Utils/imageKey.d.ts +1 -0
- package/dist/types/modules/core/implementations/Utils/loadBaseline.d.ts +4 -0
- package/dist/types/modules/core/implementations/Utils/mapLimit.d.ts +1 -0
- package/dist/types/modules/core/implementations/Utils/observationKey.d.ts +1 -0
- package/dist/types/modules/core/implementations/Utils/pngSize.d.ts +4 -0
- package/dist/types/modules/core/implementations/Utils/readJson.d.ts +1 -0
- package/dist/types/modules/core/implementations/Utils/readTaskRecord.d.ts +2 -0
- package/dist/types/modules/core/implementations/Utils/scanCases.d.ts +9 -0
- package/dist/types/modules/core/implementations/Utils/taskDirectory.d.ts +1 -0
- package/dist/types/modules/core/implementations/Utils/toCase.d.ts +3 -0
- package/dist/types/modules/core/implementations/Utils/toObservation.d.ts +3 -0
- package/dist/types/modules/core/implementations/Utils/toSnapshot.d.ts +3 -0
- package/dist/types/modules/core/implementations/Utils/writeBytesAtomic.d.ts +1 -0
- package/dist/types/modules/core/implementations/Utils/writeJsonAtomic.d.ts +1 -0
- package/dist/types/modules/core/implementations/Utils/writeTextAtomic.d.ts +1 -0
- package/dist/types/modules/core/implementations/baselineChanges.d.ts +6 -0
- package/dist/types/modules/core/implementations/config.d.ts +6 -0
- package/dist/types/modules/core/implementations/content.d.ts +1 -0
- package/dist/types/modules/core/implementations/evidra.d.ts +31 -0
- package/dist/types/modules/core/implementations/git.d.ts +11 -0
- package/dist/types/modules/core/implementations/gitChanges.d.ts +29 -0
- package/dist/types/modules/core/implementations/index.d.ts +17 -0
- package/dist/types/modules/core/implementations/internal/compare.d.ts +15 -0
- package/dist/types/modules/core/implementations/internal/getBaseline.d.ts +4 -0
- package/dist/types/modules/core/implementations/internal/listTasks.d.ts +2 -0
- package/dist/types/modules/core/implementations/internal/taskRecords.d.ts +4 -0
- package/dist/types/modules/core/implementations/internal/updateBaseline.d.ts +5 -0
- package/dist/types/modules/core/implementations/paths.d.ts +48 -0
- package/dist/types/modules/core/implementations/report.d.ts +3 -0
- package/dist/types/modules/core/implementations/reportResources.d.ts +4 -0
- package/dist/types/modules/core/implementations/reportStatus.d.ts +10 -0
- package/dist/types/modules/core/implementations/reportTree.d.ts +5 -0
- package/dist/types/modules/core/implementations/repository.d.ts +10 -0
- package/dist/types/modules/core/implementations/requests.d.ts +13 -0
- package/dist/types/modules/core/implementations/snapshots.d.ts +11 -0
- package/dist/types/modules/core/implementations/storage/local.d.ts +3 -0
- package/dist/types/modules/core/implementations/storage/objects.d.ts +3 -0
- package/dist/types/modules/core/index.d.ts +21 -0
- package/dist/types/packages/sdk/src/index.d.ts +21 -0
- package/dist/types/packages/sdk/src/types.d.ts +9 -0
- package/dist/web/assets/InterVariable-DiVDrmQJ.woff2 +0 -0
- package/dist/web/assets/abap-08VXUWAP.js +1 -0
- package/dist/web/assets/apex-BWPQTe0t.js +1 -0
- package/dist/web/assets/azcli-Bc_sGQ0U.js +1 -0
- package/dist/web/assets/bat-i0X4ZdIN.js +1 -0
- package/dist/web/assets/bicep-B5-_aFwp.js +2 -0
- package/dist/web/assets/cameligo-DMUM7wLl.js +1 -0
- package/dist/web/assets/clojure-Cm7r79vr.js +1 -0
- package/dist/web/assets/codicon-DF1abBS2.ttf +0 -0
- package/dist/web/assets/coffee-Ba7i2nA0.js +1 -0
- package/dist/web/assets/cpp-C7h46wYY.js +1 -0
- package/dist/web/assets/csharp-BKxtCVv1.js +1 -0
- package/dist/web/assets/csp-bTuwJoIa.js +1 -0
- package/dist/web/assets/css-DIMkf-bt.js +3 -0
- package/dist/web/assets/css.worker-DwfUZ3fB.js +96 -0
- package/dist/web/assets/cssMode-B8lMpRZk.js +1 -0
- package/dist/web/assets/cypher-CVaqCwHa.js +1 -0
- package/dist/web/assets/dart-onAF5SnQ.js +1 -0
- package/dist/web/assets/dockerfile-DZFCIeNp.js +1 -0
- package/dist/web/assets/ecl-94qehhXe.js +1 -0
- package/dist/web/assets/editor-DjpsE8to.css +1 -0
- package/dist/web/assets/editor.api-v7kHj8A9.js +908 -0
- package/dist/web/assets/editor.worker-CRz__AKW.js +33 -0
- package/dist/web/assets/elixir-6RTg0lbw.js +1 -0
- package/dist/web/assets/flow9-C5_-GSwl.js +1 -0
- package/dist/web/assets/freemarker2-DGeBHzes.js +3 -0
- package/dist/web/assets/fsharp-C8Ef5oNN.js +1 -0
- package/dist/web/assets/go-C-y9NEjX.js +1 -0
- package/dist/web/assets/graphql-fmXr3nnJ.js +1 -0
- package/dist/web/assets/handlebars-CJj8r50C.js +1 -0
- package/dist/web/assets/hcl-CpzslTdj.js +1 -0
- package/dist/web/assets/html-DjzDFsf0.js +1 -0
- package/dist/web/assets/html.worker-D9ugpX4y.js +509 -0
- package/dist/web/assets/htmlMode-CkwZJBoD.js +1 -0
- package/dist/web/assets/index-CSk5TcTU.js +37 -0
- package/dist/web/assets/index-jRxy440Y.css +2 -0
- package/dist/web/assets/ini-sBoK_t0W.js +1 -0
- package/dist/web/assets/java-BEtHBSE6.js +1 -0
- package/dist/web/assets/javascript-C-MAHJiN.js +1 -0
- package/dist/web/assets/json.worker-CV9fqkUp.js +65 -0
- package/dist/web/assets/jsonMode-CkXjaZv2.js +7 -0
- package/dist/web/assets/julia-Bri6UV-V.js +1 -0
- package/dist/web/assets/kotlin-BOotOW0E.js +1 -0
- package/dist/web/assets/less-B9JPFI3C.js +2 -0
- package/dist/web/assets/lexon-CfSJPG6W.js +1 -0
- package/dist/web/assets/liquid-7k8-ZDme.js +1 -0
- package/dist/web/assets/lspLanguageFeatures-CUP45dUg.js +4 -0
- package/dist/web/assets/lua-CsQS60Ue.js +1 -0
- package/dist/web/assets/m3-D-oSqn_W.js +1 -0
- package/dist/web/assets/markdown-Cimd5fb3.js +1 -0
- package/dist/web/assets/mdx-D-hYSOvW.js +1 -0
- package/dist/web/assets/mips-CIPQ_RoX.js +1 -0
- package/dist/web/assets/monaco-Dq3bzBUw.js +58 -0
- package/dist/web/assets/monaco-n7clI0si.css +1 -0
- package/dist/web/assets/msdax-DauUninz.js +1 -0
- package/dist/web/assets/mysql-SOo6toE5.js +1 -0
- package/dist/web/assets/objective-c-FvmIjYaQ.js +1 -0
- package/dist/web/assets/pascal-DrH0SRf2.js +1 -0
- package/dist/web/assets/pascaligo-D-ptJ9y-.js +1 -0
- package/dist/web/assets/perl-oz_6vUea.js +1 -0
- package/dist/web/assets/pgsql-DTj74zXo.js +1 -0
- package/dist/web/assets/php-nr791fC2.js +1 -0
- package/dist/web/assets/pla-CopQ2nXW.js +1 -0
- package/dist/web/assets/postiats-43DmfD33.js +1 -0
- package/dist/web/assets/powerquery-D3hlyOfw.js +1 -0
- package/dist/web/assets/powershell-DmHpPYUd.js +1 -0
- package/dist/web/assets/protobuf-C531GsRP.js +2 -0
- package/dist/web/assets/pug-Z5eAx3Zn.js +1 -0
- package/dist/web/assets/python-BpkAjkSI.js +1 -0
- package/dist/web/assets/qsharp-DkqhCAOL.js +1 -0
- package/dist/web/assets/r-BwWrilGY.js +1 -0
- package/dist/web/assets/razor-CxgXgZt1.js +1 -0
- package/dist/web/assets/redis-ClamHrr6.js +1 -0
- package/dist/web/assets/redshift-DT7zqm-g.js +1 -0
- package/dist/web/assets/restructuredtext-BYgofb2h.js +1 -0
- package/dist/web/assets/ruby-DezsRK8O.js +1 -0
- package/dist/web/assets/rust-DdL9SqIa.js +1 -0
- package/dist/web/assets/sb-CcwsVR0C.js +1 -0
- package/dist/web/assets/scala-DHpiXF5c.js +1 -0
- package/dist/web/assets/scheme-BeGwcela.js +1 -0
- package/dist/web/assets/scss-gp-XZpBa.js +3 -0
- package/dist/web/assets/shell-CC2rA5mh.js +1 -0
- package/dist/web/assets/solidity-BEEn4gHE.js +1 -0
- package/dist/web/assets/sophia-CRfGWb83.js +1 -0
- package/dist/web/assets/sparql-D_Lu-MrJ.js +1 -0
- package/dist/web/assets/sql-NEE52Syq.js +1 -0
- package/dist/web/assets/st-DbInun42.js +1 -0
- package/dist/web/assets/swift-Bxkupp3x.js +1 -0
- package/dist/web/assets/systemverilog-Bz4Y3fRF.js +1 -0
- package/dist/web/assets/tcl-DISqw1ZD.js +1 -0
- package/dist/web/assets/ts.worker-DIAQkoB3.js +67741 -0
- package/dist/web/assets/tsMode-BUKs-FlJ.js +11 -0
- package/dist/web/assets/twig-De2hgUGE.js +1 -0
- package/dist/web/assets/typescript-DVSIawmK.js +1 -0
- package/dist/web/assets/typespec-B8J7ngcE.js +1 -0
- package/dist/web/assets/vb-DV3o63ZY.js +1 -0
- package/dist/web/assets/wgsl-DpFanUEy.js +298 -0
- package/dist/web/assets/workers-v4-uKnr3.js +1 -0
- package/dist/web/assets/xml-D2x86430.js +1 -0
- package/dist/web/assets/yaml-nb07hHZ9.js +1 -0
- package/dist/web/index.html +13 -0
- package/package.json +77 -4
- package/skills/evidra/SKILL.md +112 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type AddCaseInput, type AddCaseOutput } from './Functions/addCase.js';
|
|
2
|
+
import { type AddTaskInput, type AddTaskOutput } from './Functions/addTask.js';
|
|
3
|
+
import { type CompareInput, type CompareOutput } from './Functions/compare.js';
|
|
4
|
+
import { type CompareTasksInput, type CompareTasksOutput } from './Functions/compareTasks.js';
|
|
5
|
+
import { type FinishTaskInput, type FinishTaskOutput } from './Functions/finishTask.js';
|
|
6
|
+
import { type GetTaskCaseInput, type GetTaskCaseOutput } from './Functions/getTaskCase.js';
|
|
7
|
+
import { type GetTaskTreeInput, type GetTaskTreeOutput } from './Functions/getTaskTree.js';
|
|
8
|
+
import { type ListTasksInput, type ListTasksOutput } from './Functions/listTasks.js';
|
|
9
|
+
import { type UpdateBaselineInput, type UpdateBaselineOutput } from './Functions/updateBaseline.js';
|
|
10
|
+
import { type EvidraOptions } from '../contracts/context.js';
|
|
11
|
+
export type { TaskComparisonSummary } from './Functions/compareTasks.js';
|
|
12
|
+
export type { TaskCaseObservation } from './Functions/getTaskCase.js';
|
|
13
|
+
export type { TaskTreeNode } from './Functions/getTaskTree.js';
|
|
14
|
+
export type { EvidraOptions, FileStorage } from '../contracts/context.js';
|
|
15
|
+
export type { AddCaseInput, AddCaseOutput, AddTaskInput, AddTaskOutput, CompareInput, CompareOutput, CompareTasksInput, CompareTasksOutput, FinishTaskInput, FinishTaskOutput, GetTaskCaseInput, GetTaskCaseOutput, GetTaskTreeInput, GetTaskTreeOutput, ListTasksInput, ListTasksOutput, UpdateBaselineInput, UpdateBaselineOutput, };
|
|
16
|
+
export declare class Evidra {
|
|
17
|
+
private readonly cwd;
|
|
18
|
+
private readonly baselineRoot;
|
|
19
|
+
private readonly storage;
|
|
20
|
+
private readonly concurrency;
|
|
21
|
+
constructor(input: EvidraOptions);
|
|
22
|
+
addTask(input: AddTaskInput): Promise<AddTaskOutput>;
|
|
23
|
+
addCase(input: AddCaseInput): Promise<AddCaseOutput>;
|
|
24
|
+
finishTask(input: FinishTaskInput): Promise<FinishTaskOutput>;
|
|
25
|
+
compare(input: CompareInput): Promise<CompareOutput>;
|
|
26
|
+
updateBaseline(input: UpdateBaselineInput): Promise<UpdateBaselineOutput>;
|
|
27
|
+
listTasks(input?: ListTasksInput): Promise<ListTasksOutput>;
|
|
28
|
+
compareTasks(input: CompareTasksInput): Promise<CompareTasksOutput>;
|
|
29
|
+
getTaskTree(input: GetTaskTreeInput): Promise<GetTaskTreeOutput>;
|
|
30
|
+
getTaskCase(input: GetTaskCaseInput): Promise<GetTaskCaseOutput>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class GitError extends Error {
|
|
2
|
+
}
|
|
3
|
+
interface GitRunResult {
|
|
4
|
+
ok: boolean;
|
|
5
|
+
stdout: string;
|
|
6
|
+
stderr: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function runGit(repoRoot: string, args: string[], timeoutMs?: number): Promise<GitRunResult>;
|
|
9
|
+
export declare function gitOptional(repoRoot: string, args: string[]): Promise<string | null>;
|
|
10
|
+
export declare function resolveRef(repoRoot: string, ref: string): Promise<string | null>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type CodeChange } from '../contracts/functions/gitChanges.js';
|
|
2
|
+
export type { CodeChange, CodeChanges, CodeDiff, CodeReviewInput, } from '../contracts/functions/gitChanges.js';
|
|
3
|
+
interface Side {
|
|
4
|
+
mode: string;
|
|
5
|
+
hash: string;
|
|
6
|
+
}
|
|
7
|
+
interface ChangeMeta {
|
|
8
|
+
path: string;
|
|
9
|
+
oldPath?: string;
|
|
10
|
+
status: CodeChange['status'];
|
|
11
|
+
before: Side | null;
|
|
12
|
+
}
|
|
13
|
+
export declare const MAX_BYTES: number;
|
|
14
|
+
export declare function git(root: string, args: string[]): Promise<string>;
|
|
15
|
+
/** 读取 Git 记录的改动列表;只解析原始 diff,不读取工作区内容。 */
|
|
16
|
+
export declare function collectChanges(root: string, ref: string): Promise<{
|
|
17
|
+
sha: string;
|
|
18
|
+
files: ChangeMeta[];
|
|
19
|
+
}>;
|
|
20
|
+
/** 工作区一侧的内容指纹;符号链接取目标,子模块取提交。 */
|
|
21
|
+
export declare function worktreeSide(repo: string, file: string): Promise<Side | null>;
|
|
22
|
+
/**
|
|
23
|
+
* 审核键只依赖 diff 本身:路径、重命名前的路径、状态、两侧内容和文件模式。
|
|
24
|
+
* 分支名和提交号不参与,避免无关提交让已审核的差异失效。
|
|
25
|
+
*/
|
|
26
|
+
export declare function reviewKey(change: ChangeMeta, after: Side | null): string;
|
|
27
|
+
export declare function publicChange(change: ChangeMeta, after: Side | null): CodeChange;
|
|
28
|
+
export declare function reviewFile(root: string): Promise<string>;
|
|
29
|
+
export declare function readReviews(root: string): Promise<Record<string, string>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { addCase } from './Functions/addCase.js';
|
|
2
|
+
export { addTask } from './Functions/addTask.js';
|
|
3
|
+
export { finishTask } from './Functions/finishTask.js';
|
|
4
|
+
export { approve } from './Functions/approve.js';
|
|
5
|
+
export { reviewCodeChanges } from './Functions/reviewCodeChanges.js';
|
|
6
|
+
export { reviewBaselineChanges } from './Functions/reviewBaselineChanges.js';
|
|
7
|
+
export { deleteBaselineFile } from './Functions/deleteBaselineFile.js';
|
|
8
|
+
export { compareTask } from './Functions/compareTask.js';
|
|
9
|
+
export { getBaselineChanges } from './Functions/getBaselineChanges.js';
|
|
10
|
+
export { getGitChanges } from './Functions/getGitChanges.js';
|
|
11
|
+
export { getGitDiff } from './Functions/getGitDiff.js';
|
|
12
|
+
export { listTaskSummaries } from './Functions/listTaskSummaries.js';
|
|
13
|
+
export { loadConfig } from './Functions/loadConfig.js';
|
|
14
|
+
export { resolveConfig } from './Functions/resolveConfig.js';
|
|
15
|
+
export { readProjectInfo } from './Functions/readProjectInfo.js';
|
|
16
|
+
export { listBaselines } from './Functions/listBaselines.js';
|
|
17
|
+
export { readTaskReport } from './Functions/readTaskReport.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type CompareInput, type CompareOutput, type CompareRecordOptions } from '../../contracts/internal/compare.js';
|
|
2
|
+
import type { Comparison, ComparisonSummary } from '../../contracts/comparison.js';
|
|
3
|
+
import type { FileStorage } from '../../contracts/context.js';
|
|
4
|
+
import type { BaselineState, TaskRecord } from '../../contracts/taskRecord.js';
|
|
5
|
+
import { type ImageDiffResult } from '../Utils/imageDiffPool.js';
|
|
6
|
+
export { CompareInputSchema } from '../../contracts/internal/compare.js';
|
|
7
|
+
export type { CompareInput, CompareOutput, CompareRecordOptions, } from '../../contracts/internal/compare.js';
|
|
8
|
+
export declare function compare(input: CompareInput, cwd: string, baselineRoot: string, storage: FileStorage, concurrency?: number): Promise<CompareOutput>;
|
|
9
|
+
export declare function compareRecord(cwd: string, storage: FileStorage, record: TaskRecord, baseline: BaselineState, options?: CompareRecordOptions): Promise<Comparison>;
|
|
10
|
+
/**
|
|
11
|
+
* 只读取轻量 summary.json,不读取 case/diff 索引或计算图片差异。
|
|
12
|
+
* 摘要缺失、损坏或基线版本不一致时返回 null,列表显示未知。
|
|
13
|
+
*/
|
|
14
|
+
export declare function readCachedComparisonSummary(cwd: string, namespace: string, taskId: string, currentBaselineVersion: string): Promise<ComparisonSummary | null>;
|
|
15
|
+
export declare function localImageDiff(oldBytes: Uint8Array, newBytes: Uint8Array): ImageDiffResult;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type GetBaselineOutput } from '../../contracts/internal/getBaseline.js';
|
|
2
|
+
export type { GetBaselineOutput } from '../../contracts/internal/getBaseline.js';
|
|
3
|
+
/** 读取某个 namespace 的 core 基线;只扫描 baselines 目录,不做比较。 */
|
|
4
|
+
export declare function getBaseline(baselineRoot: string, namespace: string): Promise<GetBaselineOutput>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type TaskRecordEntry } from '../../contracts/internal/taskRecords.js';
|
|
2
|
+
export type { TaskRecordEntry } from '../../contracts/internal/taskRecords.js';
|
|
3
|
+
/** 按 ID 索引读取任务;索引或任务不存在时返回 null,不扫描任务目录。 */
|
|
4
|
+
export declare function getTask(cwd: string, taskId: string): Promise<TaskRecordEntry | null>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type UpdateBaselineInput, type UpdateBaselineOutput } from '../../contracts/internal/updateBaseline.js';
|
|
2
|
+
import type { FileStorage } from '../../contracts/context.js';
|
|
3
|
+
export { UpdateBaselineInputSchema } from '../../contracts/internal/updateBaseline.js';
|
|
4
|
+
export type { UpdateBaselineInput, UpdateBaselineOutput, } from '../../contracts/internal/updateBaseline.js';
|
|
5
|
+
export declare function updateBaseline(input: UpdateBaselineInput, cwd: string, baselineRoot: string, storage: FileStorage, concurrency?: number): Promise<UpdateBaselineOutput>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 本地路径组装器。参数由 SDK 入口校验,这里只做字符串拼装。
|
|
3
|
+
*
|
|
4
|
+
* 任务:
|
|
5
|
+
* <root>/tasks/<yyyy-MM-dd>/<HH-mm-ss>-<taskId>/task.json
|
|
6
|
+
* <root>/tasks/_index/<taskId 前两位>/<taskId 剩余部分>
|
|
7
|
+
*
|
|
8
|
+
* 基线(按 keypath 拆分,无 namespace 级 baseline.json;casePath 最后一段是 caseId):
|
|
9
|
+
* <root>/baselines/<namespace>/<casePath...>/baseline.json
|
|
10
|
+
* <root>/baselines/<namespace>/<casePath...>/snapshots/<snapshotId>.txt
|
|
11
|
+
*
|
|
12
|
+
* 缓存:
|
|
13
|
+
* <root>/cache/baselines/<namespace>/snapshot.json
|
|
14
|
+
* <root>/cache/comparisons/<namespace>/<taskId>/index.json
|
|
15
|
+
* <root>/cache/comparisons/<namespace>/<taskId>/diff/<caseId>/<snapshotId>.png
|
|
16
|
+
* <root>/cache/downloads/<hash(objectKey)>.png
|
|
17
|
+
*
|
|
18
|
+
* 时间按本地时区拆分。
|
|
19
|
+
*/
|
|
20
|
+
export declare const pathSchema: {
|
|
21
|
+
taskIndex(root: string, taskId: string): string;
|
|
22
|
+
task(root: string, startedAt: string, taskId: string): {
|
|
23
|
+
path: string;
|
|
24
|
+
directory: string;
|
|
25
|
+
manifest: string;
|
|
26
|
+
};
|
|
27
|
+
baseline(root: string, namespace: string, casePath: string[]): {
|
|
28
|
+
directory: string;
|
|
29
|
+
manifest: string;
|
|
30
|
+
snapshotDirectory: string;
|
|
31
|
+
text(snapshotId: string): string;
|
|
32
|
+
};
|
|
33
|
+
cache(root: string): {
|
|
34
|
+
directory: string;
|
|
35
|
+
baseline(namespace: string): {
|
|
36
|
+
directory: string;
|
|
37
|
+
snapshot: string;
|
|
38
|
+
};
|
|
39
|
+
comparison(namespace: string, taskId: string): {
|
|
40
|
+
directory: string;
|
|
41
|
+
index: string;
|
|
42
|
+
summary: string;
|
|
43
|
+
caseDiffDirectory: (caseId: string) => string;
|
|
44
|
+
diff: (caseId: string, snapshotId: string) => string;
|
|
45
|
+
};
|
|
46
|
+
download(hash: string): string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Snapshot } from '../contracts/model.js';
|
|
2
|
+
export declare function reportStaticUrl(reportDir: string, file: string): string;
|
|
3
|
+
/** 返回详情前确保基线图片已在本地,静态路由只负责读取文件。 */
|
|
4
|
+
export declare function prepareBaselineImages(root: string, snapshots: Snapshot[]): Promise<void>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CaseDiff } from '../contracts/comparison.js';
|
|
2
|
+
import type { ReportStatus, TaskDisplay } from '../contracts/report.js';
|
|
3
|
+
import type { TaskSummaryItem } from '../contracts/functions/listTaskSummaries.js';
|
|
4
|
+
export declare function reviewCounts(items: CaseDiff[]): Record<string, number>;
|
|
5
|
+
export declare function taskStatus(execution: {
|
|
6
|
+
running?: boolean;
|
|
7
|
+
failed: number;
|
|
8
|
+
total: number;
|
|
9
|
+
}, counts: Record<string, number>): ReportStatus;
|
|
10
|
+
export declare function taskDisplay(task: Omit<TaskSummaryItem, 'display'>): TaskDisplay;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Namespace } from '../contracts/index.js';
|
|
2
|
+
import type { ReportEntry, ReportTreeNode } from '../contracts/report.js';
|
|
3
|
+
export declare const reportEntryKey: (namespace: string, id: string) => string;
|
|
4
|
+
/** Preserve submitted key/display segments and configured namespace order. */
|
|
5
|
+
export declare function buildReportTree(namespaces: Namespace[], entries: ReportEntry[], running: boolean): ReportTreeNode[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type TaskDetail } from '../contracts/repository.js';
|
|
2
|
+
import type { TaskRecord } from '../contracts/taskRecord.js';
|
|
3
|
+
export type { TaskDetail } from '../contracts/repository.js';
|
|
4
|
+
export declare function reportRoot(root: string): Promise<string>;
|
|
5
|
+
export declare function storageFor(reportDir: string, repoRoot: string): import("../contracts/context.js").FileStorage;
|
|
6
|
+
export declare function toTaskDetail(record: TaskRecord): TaskDetail;
|
|
7
|
+
/** 按 core task id 读取任务;taskPath 不暴露给旧 service API。 */
|
|
8
|
+
export declare function readCoreTask(root: string, id: string): Promise<TaskDetail | null>;
|
|
9
|
+
/** 读取任务对应的 core taskPath;不存在时抛错。 */
|
|
10
|
+
export declare function taskPathOf(root: string, id: string): Promise<string>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare function reviewCodeRequest(root: string, input: unknown): Promise<{
|
|
2
|
+
reviewed: string[];
|
|
3
|
+
}>;
|
|
4
|
+
export declare function reviewRequest(root: string, input: unknown): Promise<{
|
|
5
|
+
reviewed: string[];
|
|
6
|
+
}>;
|
|
7
|
+
export declare function deleteBaselineRequest(root: string, input: unknown): Promise<{
|
|
8
|
+
ok: boolean;
|
|
9
|
+
}>;
|
|
10
|
+
export declare function approveRequest(root: string, input: unknown): Promise<{
|
|
11
|
+
conflict: boolean;
|
|
12
|
+
comparison: import("./snapshots.js").Comparison;
|
|
13
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Baseline } from '../contracts/snapshots.js';
|
|
2
|
+
import type { TaskDetail } from './repository.js';
|
|
3
|
+
export type { Baseline } from '../contracts/snapshots.js';
|
|
4
|
+
export type { CaseDiff, Change, Comparison, ComparisonSummary, SnapshotDiff, } from '../contracts/comparison.js';
|
|
5
|
+
export type { BaselineCase } from '../contracts/model.js';
|
|
6
|
+
export { reportRoot } from './repository.js';
|
|
7
|
+
export type { TaskDetail } from './repository.js';
|
|
8
|
+
export declare const canonical: (value: unknown) => string;
|
|
9
|
+
export declare const version: (value: unknown) => string;
|
|
10
|
+
export declare function readTask(root: string, id: string): Promise<TaskDetail>;
|
|
11
|
+
export declare function readBaseline(root: string, namespace: string): Promise<Baseline>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type { AddTaskInput, Baseline, BaselineChanges, CaseDiff, CaseInput, CaseResult, CaseStatus, CodeChanges, CodeDiff, Comparison, Config, Namespace, Observation, ObservationInput, ProjectInfo, TaskDetail, TaskSummaryItem, SnapshotDiff, SnapshotInput, TreeSegment, } from './contracts/index.js';
|
|
2
|
+
export { addCase, addTask, approve, reviewCodeChanges, reviewBaselineChanges, deleteBaselineFile, compareTask, finishTask, getBaselineChanges, getGitChanges, getGitDiff, listTaskSummaries, loadConfig, resolveConfig, readProjectInfo, } from './implementations/index.js';
|
|
3
|
+
export type { StoredCase, StoredSnapshot, StoredObservation } from './contracts/taskRecord.js';
|
|
4
|
+
export type { AddCaseInput } from './contracts/functions/addCase.js';
|
|
5
|
+
export type { FinishTaskInput } from './contracts/functions/finishTask.js';
|
|
6
|
+
export type { ApproveInput } from './contracts/functions/approve.js';
|
|
7
|
+
export type { CompareTaskInput } from './contracts/functions/compareTask.js';
|
|
8
|
+
export type { DeleteBaselineFileInput } from './contracts/functions/deleteBaselineFile.js';
|
|
9
|
+
export type { GetBaselineChangesInput } from './contracts/functions/getBaselineChanges.js';
|
|
10
|
+
export type { GetGitChangesInput } from './contracts/functions/getGitChanges.js';
|
|
11
|
+
export type { GetGitDiffInput } from './contracts/functions/getGitDiff.js';
|
|
12
|
+
export type { ListTaskSummariesInput } from './contracts/functions/listTaskSummaries.js';
|
|
13
|
+
export type { LoadConfigInput } from './contracts/functions/loadConfig.js';
|
|
14
|
+
export type { ReadProjectInfoInput } from './contracts/functions/readProjectInfo.js';
|
|
15
|
+
export type { ResolveConfigInput } from './contracts/functions/resolveConfig.js';
|
|
16
|
+
export type { ReviewBaselineChangesInput } from './contracts/functions/reviewBaselineChanges.js';
|
|
17
|
+
export type { ReviewCodeChangesInput } from './contracts/functions/reviewCodeChanges.js';
|
|
18
|
+
export type { ListBaselinesInput } from './contracts/functions/listBaselines.js';
|
|
19
|
+
export type { ReadTaskReportInput } from './contracts/functions/readTaskReport.js';
|
|
20
|
+
export type { ReportEntry, ReportTreeNode, BaselineList, TaskReport } from './contracts/report.js';
|
|
21
|
+
export { listBaselines, readTaskReport } from './implementations/index.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { CaseInput, StartInput } from './types.js';
|
|
2
|
+
export type * from './types.js';
|
|
3
|
+
export interface EvidraOptions {
|
|
4
|
+
repoRoot: string;
|
|
5
|
+
}
|
|
6
|
+
export type Evidra = Awaited<ReturnType<typeof createEvidra>>;
|
|
7
|
+
/**
|
|
8
|
+
* 本地、框架无关的任务写入入口。
|
|
9
|
+
*
|
|
10
|
+
* SDK 只做配置和输入转发;任务、快照校验、PNG 尺寸和原子写入
|
|
11
|
+
* 全部复用 core。图片只写入本地 objects 目录,文本随 task.json 保存。
|
|
12
|
+
*/
|
|
13
|
+
export declare function createEvidra(options: EvidraOptions): Promise<{
|
|
14
|
+
repoRoot: string;
|
|
15
|
+
reportDir: string;
|
|
16
|
+
start(input: StartInput): Promise<{
|
|
17
|
+
taskId: string;
|
|
18
|
+
}>;
|
|
19
|
+
case(id: string, input: CaseInput): Promise<void>;
|
|
20
|
+
finish(id: string): Promise<void>;
|
|
21
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AddTaskInput } from '../../../modules/core/index.js';
|
|
2
|
+
import type { ObservationInput } from '../../../modules/core/index.js';
|
|
3
|
+
export type { Namespace, TreeSegment, CaseStatus as Status, CaseResult as Result, } from '../../../modules/core/index.js';
|
|
4
|
+
export type { CaseInput, SnapshotInput, ObservationInput } from '../../../modules/core/index.js';
|
|
5
|
+
export type { StoredObservation as StoredContent, StoredSnapshot, StoredCase, } from '../../../modules/core/index.js';
|
|
6
|
+
export type { TaskDetail } from '../../../modules/core/index.js';
|
|
7
|
+
export type StartInput = Omit<AddTaskInput, 'startedAt' | 'repoRoot'>;
|
|
8
|
+
type WithoutName<T> = T extends unknown ? Omit<T, 'name'> : never;
|
|
9
|
+
export type ContentInput = WithoutName<ObservationInput>;
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`*`},brackets:[[`[`,`]`],[`(`,`)`]]},t={defaultToken:`invalid`,ignoreCase:!0,tokenPostfix:`.abap`,keywords:`abap-source.abbreviated.abstract.accept.accepting.according.activation.actual.add.add-corresponding.adjacent.after.alias.aliases.align.all.allocate.alpha.analysis.analyzer.and.append.appendage.appending.application.archive.area.arithmetic.as.ascending.aspect.assert.assign.assigned.assigning.association.asynchronous.at.attributes.authority.authority-check.avg.back.background.backup.backward.badi.base.before.begin.between.big.binary.bintohex.bit.black.blank.blanks.blob.block.blocks.blue.bound.boundaries.bounds.boxed.break-point.buffer.by.bypassing.byte.byte-order.call.calling.case.cast.casting.catch.center.centered.chain.chain-input.chain-request.change.changing.channels.character.char-to-hex.check.checkbox.ci_.circular.class.class-coding.class-data.class-events.class-methods.class-pool.cleanup.clear.client.clob.clock.close.coalesce.code.coding.col_background.col_group.col_heading.col_key.col_negative.col_normal.col_positive.col_total.collect.color.column.columns.comment.comments.commit.common.communication.comparing.component.components.compression.compute.concat.concat_with_space.concatenate.cond.condense.condition.connect.connection.constants.context.contexts.continue.control.controls.conv.conversion.convert.copies.copy.corresponding.country.cover.cpi.create.creating.critical.currency.currency_conversion.current.cursor.cursor-selection.customer.customer-function.dangerous.data.database.datainfo.dataset.date.dats_add_days.dats_add_months.dats_days_between.dats_is_valid.daylight.dd/mm/yy.dd/mm/yyyy.ddmmyy.deallocate.decimal_shift.decimals.declarations.deep.default.deferred.define.defining.definition.delete.deleting.demand.department.descending.describe.destination.detail.dialog.directory.disconnect.display.display-mode.distinct.divide.divide-corresponding.division.do.dummy.duplicate.duplicates.duration.during.dynamic.dynpro.edit.editor-call.else.elseif.empty.enabled.enabling.encoding.end.endat.endcase.endcatch.endchain.endclass.enddo.endenhancement.end-enhancement-section.endexec.endform.endfunction.endian.endif.ending.endinterface.end-lines.endloop.endmethod.endmodule.end-of-definition.end-of-editing.end-of-file.end-of-page.end-of-selection.endon.endprovide.endselect.end-test-injection.end-test-seam.endtry.endwhile.endwith.engineering.enhancement.enhancement-point.enhancements.enhancement-section.entries.entry.enum.environment.equiv.errormessage.errors.escaping.event.events.exact.except.exception.exceptions.exception-table.exclude.excluding.exec.execute.exists.exit.exit-command.expand.expanding.expiration.explicit.exponent.export.exporting.extend.extended.extension.extract.fail.fetch.field.field-groups.fields.field-symbol.field-symbols.file.filter.filters.filter-table.final.find.first.first-line.fixed-point.fkeq.fkge.flush.font.for.form.format.forward.found.frame.frames.free.friends.from.function.functionality.function-pool.further.gaps.generate.get.giving.gkeq.gkge.global.grant.green.group.groups.handle.handler.harmless.hashed.having.hdb.header.headers.heading.head-lines.help-id.help-request.hextobin.hide.high.hint.hold.hotspot.icon.id.identification.identifier.ids.if.ignore.ignoring.immediately.implementation.implementations.implemented.implicit.import.importing.in.inactive.incl.include.includes.including.increment.index.index-line.infotypes.inheriting.init.initial.initialization.inner.inout.input.insert.instance.instances.instr.intensified.interface.interface-pool.interfaces.internal.intervals.into.inverse.inverted-date.is.iso.job.join.keep.keeping.kernel.key.keys.keywords.kind.language.last.late.layout.leading.leave.left.left-justified.leftplus.leftspace.legacy.length.let.level.levels.like.line.lines.line-count.linefeed.line-selection.line-size.list.listbox.list-processing.little.llang.load.load-of-program.lob.local.locale.locator.logfile.logical.log-point.long.loop.low.lower.lpad.lpi.ltrim.mail.main.major-id.mapping.margin.mark.mask.match.matchcode.max.maximum.medium.members.memory.mesh.message.message-id.messages.messaging.method.methods.min.minimum.minor-id.mm/dd/yy.mm/dd/yyyy.mmddyy.mode.modif.modifier.modify.module.move.move-corresponding.multiply.multiply-corresponding.name.nametab.native.nested.nesting.new.new-line.new-page.new-section.next.no.no-display.no-extension.no-gap.no-gaps.no-grouping.no-heading.no-scrolling.no-sign.no-title.no-topofpage.no-zero.node.nodes.non-unicode.non-unique.not.null.number.object.objects.obligatory.occurrence.occurrences.occurs.of.off.offset.ole.on.only.open.option.optional.options.or.order.other.others.out.outer.output.output-length.overflow.overlay.pack.package.pad.padding.page.pages.parameter.parameters.parameter-table.part.partially.pattern.percentage.perform.performing.person.pf1.pf10.pf11.pf12.pf13.pf14.pf15.pf2.pf3.pf4.pf5.pf6.pf7.pf8.pf9.pf-status.pink.places.pool.pos_high.pos_low.position.pragmas.precompiled.preferred.preserving.primary.print.print-control.priority.private.procedure.process.program.property.protected.provide.public.push.pushbutton.put.queue-only.quickinfo.radiobutton.raise.raising.range.ranges.read.reader.read-only.receive.received.receiver.receiving.red.redefinition.reduce.reduced.ref.reference.refresh.regex.reject.remote.renaming.replace.replacement.replacing.report.request.requested.reserve.reset.resolution.respecting.responsible.result.results.resumable.resume.retry.return.returncode.returning.returns.right.right-justified.rightplus.rightspace.risk.rmc_communication_failure.rmc_invalid_status.rmc_system_failure.role.rollback.rows.rpad.rtrim.run.sap.sap-spool.saving.scale_preserving.scale_preserving_scientific.scan.scientific.scientific_with_leading_zero.scroll.scroll-boundary.scrolling.search.secondary.seconds.section.select.selection.selections.selection-screen.selection-set.selection-sets.selection-table.select-options.send.separate.separated.set.shared.shift.short.shortdump-id.sign_as_postfix.single.size.skip.skipping.smart.some.sort.sortable.sorted.source.specified.split.spool.spots.sql.sqlscript.stable.stamp.standard.starting.start-of-editing.start-of-selection.state.statement.statements.static.statics.statusinfo.step-loop.stop.structure.structures.style.subkey.submatches.submit.subroutine.subscreen.subtract.subtract-corresponding.suffix.sum.summary.summing.supplied.supply.suppress.switch.switchstates.symbol.syncpoints.syntax.syntax-check.syntax-trace.system-call.system-exceptions.system-exit.tab.tabbed.table.tables.tableview.tabstrip.target.task.tasks.test.testing.test-injection.test-seam.text.textpool.then.throw.time.times.timestamp.timezone.tims_is_valid.title.titlebar.title-lines.to.tokenization.tokens.top-lines.top-of-page.trace-file.trace-table.trailing.transaction.transfer.transformation.translate.transporting.trmac.truncate.truncation.try.tstmp_add_seconds.tstmp_current_utctimestamp.tstmp_is_valid.tstmp_seconds_between.type.type-pool.type-pools.types.uline.unassign.under.unicode.union.unique.unit_conversion.unix.unpack.until.unwind.up.update.upper.user.user-command.using.utf-8.valid.value.value-request.values.vary.varying.verification-message.version.via.view.visible.wait.warning.when.whenever.where.while.width.window.windows.with.with-heading.without.with-title.word.work.write.writer.xml.xsd.yellow.yes.yymmdd.zero.zone.abap_system_timezone.abap_user_timezone.access.action.adabas.adjust_numbers.allow_precision_loss.allowed.amdp.applicationuser.as_geo_json.as400.associations.balance.behavior.breakup.bulk.cds.cds_client.check_before_save.child.clients.corr.corr_spearman.cross.cycles.datn_add_days.datn_add_months.datn_days_between.dats_from_datn.dats_tims_to_tstmp.dats_to_datn.db2.db6.ddl.dense_rank.depth.deterministic.discarding.entities.entity.error.failed.finalize.first_value.fltp_to_dec.following.fractional.full.graph.grouping.hierarchy.hierarchy_ancestors.hierarchy_ancestors_aggregate.hierarchy_descendants.hierarchy_descendants_aggregate.hierarchy_siblings.incremental.indicators.lag.last_value.lead.leaves.like_regexpr.link.locale_sap.lock.locks.many.mapped.matched.measures.median.mssqlnt.multiple.nodetype.ntile.nulls.occurrences_regexpr.one.operations.oracle.orphans.over.parent.parents.partition.pcre.period.pfcg_mapping.preceding.privileged.product.projection.rank.redirected.replace_regexpr.reported.response.responses.root.row.row_number.sap_system_date.save.schema.session.sets.shortdump.siblings.spantree.start.stddev.string_agg.subtotal.sybase.tims_from_timn.tims_to_timn.to_blob.to_clob.total.trace-entry.tstmp_to_dats.tstmp_to_dst.tstmp_to_tims.tstmpl_from_utcl.tstmpl_to_utcl.unbounded.utcl_add_seconds.utcl_current.utcl_seconds_between.uuid.var.verbatim`.split(`.`),builtinFunctions:`abs.acos.asin.atan.bit-set.boolc.boolx.ceil.char_off.charlen.cmax.cmin.concat_lines_of.contains.contains_any_not_of.contains_any_of.cos.cosh.count.count_any_not_of.count_any_of.dbmaxlen.distance.escape.exp.find_any_not_of.find_any_of.find_end.floor.frac.from_mixed.ipow.line_exists.line_index.log.log10.matches.nmax.nmin.numofchar.repeat.rescale.reverse.round.segment.shift_left.shift_right.sign.sin.sinh.sqrt.strlen.substring.substring_after.substring_before.substring_from.substring_to.tan.tanh.to_lower.to_mixed.to_upper.trunc.utclong_add.utclong_current.utclong_diff.xsdbool.xstrlen`.split(`.`),typeKeywords:`b.c.d.decfloat16.decfloat34.f.i.int8.n.p.s.string.t.utclong.x.xstring.any.clike.csequence.decfloat.numeric.simple.xsequence.accp.char.clnt.cuky.curr.datn.dats.d16d.d16n.d16r.d34d.d34n.d34r.dec.df16_dec.df16_raw.df34_dec.df34_raw.fltp.geom_ewkb.int1.int2.int4.lang.lchr.lraw.numc.quan.raw.rawstring.sstring.timn.tims.unit.utcl.df16_scl.df34_scl.prec.varc.abap_bool.abap_false.abap_true.abap_undefined.me.screen.space.super.sy.syst.table_line.*sys*`.split(`.`),builtinMethods:[`class_constructor`,`constructor`],derivedTypes:[`%CID`,`%CID_REF`,`%CONTROL`,`%DATA`,`%ELEMENT`,`%FAIL`,`%KEY`,`%MSG`,`%PARAM`,`%PID`,`%PID_ASSOC`,`%PID_PARENT`,`%_HINTS`],cdsLanguage:[`@AbapAnnotation`,`@AbapCatalog`,`@AccessControl`,`@API`,`@ClientDependent`,`@ClientHandling`,`@CompatibilityContract`,`@DataAging`,`@EndUserText`,`@Environment`,`@LanguageDependency`,`@MappingRole`,`@Metadata`,`@MetadataExtension`,`@ObjectModel`,`@Scope`,`@Semantics`,`$EXTENSION`,`$SELF`],selectors:[`->`,`->*`,`=>`,`~`,`~*`],operators:` +. -./.*.**.div.mod.=.#.@.+=.-=.*=./=.**=.&&=.?=.&.&&.bit-and.bit-not.bit-or.bit-xor.m.o.z.<. >.<=.>=.<>.><.=<.=>.bt.byte-ca.byte-cn.byte-co.byte-cs.byte-na.byte-ns.ca.cn.co.cp.cs.eq.ge.gt.le.lt.na.nb.ne.np.ns.*/.*:.--./*.//`.split(`.`),symbols:/[=><!~?&+\-*\/\^%#@]+/,tokenizer:{root:[[/[a-z_\/$%@]([\w\/$%]|-(?!>))*/,{cases:{"@typeKeywords":`type`,"@keywords":`keyword`,"@cdsLanguage":`annotation`,"@derivedTypes":`type`,"@builtinFunctions":`type`,"@builtinMethods":`type`,"@operators":`key`,"@default":`identifier`}}],[/<[\w]+>/,`identifier`],[/##[\w|_]+/,`comment`],{include:`@whitespace`},[/[:,.]/,`delimiter`],[/[{}()\[\]]/,`@brackets`],[/@symbols/,{cases:{"@selectors":`tag`,"@operators":`key`,"@default":``}}],[/'/,{token:`string`,bracket:`@open`,next:`@stringquote`}],[/`/,{token:`string`,bracket:`@open`,next:`@stringping`}],[/\|/,{token:`string`,bracket:`@open`,next:`@stringtemplate`}],[/\d+/,`number`]],stringtemplate:[[/[^\\\|]+/,`string`],[/\\\|/,`string`],[/\|/,{token:`string`,bracket:`@close`,next:`@pop`}]],stringping:[[/[^\\`]+/,`string`],[/`/,{token:`string`,bracket:`@close`,next:`@pop`}]],stringquote:[[/[^\\']+/,`string`],[/'/,{token:`string`,bracket:`@close`,next:`@pop`}]],whitespace:[[/[ \t\r\n]+/,``],[/^\*.*$/,`comment`],[/\".*$/,`comment`]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:`//`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`},{open:`<`,close:`>`}],folding:{markers:{start:RegExp(`^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))`),end:RegExp(`^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))`)}}},t=`abstract.activate.and.any.array.as.asc.assert.autonomous.begin.bigdecimal.blob.boolean.break.bulk.by.case.cast.catch.char.class.collect.commit.const.continue.convertcurrency.decimal.default.delete.desc.do.double.else.end.enum.exception.exit.export.extends.false.final.finally.float.for.from.future.get.global.goto.group.having.hint.if.implements.import.in.inner.insert.instanceof.int.interface.into.join.last_90_days.last_month.last_n_days.last_week.like.limit.list.long.loop.map.merge.native.new.next_90_days.next_month.next_n_days.next_week.not.null.nulls.number.object.of.on.or.outer.override.package.parallel.pragma.private.protected.public.retrieve.return.returning.rollback.savepoint.search.select.set.short.sort.stat.static.strictfp.super.switch.synchronized.system.testmethod.then.this.this_month.this_week.throw.throws.today.tolabel.tomorrow.transaction.transient.trigger.true.try.type.undelete.update.upsert.using.virtual.void.volatile.webservice.when.where.while.yesterday`.split(`.`),n=e=>e.charAt(0).toUpperCase()+e.substr(1),r=[];t.forEach(e=>{r.push(e),r.push(e.toUpperCase()),r.push(n(e))});var i={defaultToken:``,tokenPostfix:`.apex`,keywords:r,operators:`=.>.<.!.~.?.:.==.<=.>=.!=.&&.||.++.--.+.-.*./.&.|.^.%.<<.>>.>>>.+=.-=.*=./=.&=.|=.^=.%=.<<=.>>=.>>>=`.split(`.`),symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,tokenizer:{root:[[/[a-z_$][\w$]*/,{cases:{"@keywords":{token:`keyword.$0`},"@default":`identifier`}}],[/[A-Z][\w\$]*/,{cases:{"@keywords":{token:`keyword.$0`},"@default":`type.identifier`}}],{include:`@whitespace`},[/[{}()\[\]]/,`@brackets`],[/[<>](?!@symbols)/,`@brackets`],[/@symbols/,{cases:{"@operators":`delimiter`,"@default":``}}],[/@\s*[a-zA-Z_\$][\w\$]*/,`annotation`],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,`number.float`],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,`number.float`],[/(@digits)[fFdD]/,`number.float`],[/(@digits)[lL]?/,`number`],[/[;,.]/,`delimiter`],[/"([^"\\]|\\.)*$/,`string.invalid`],[/'([^'\\]|\\.)*$/,`string.invalid`],[/"/,`string`,`@string."`],[/'/,`string`,`@string.'`],[/'[^\\']'/,`string`],[/(')(@escapes)(')/,[`string`,`string.escape`,`string`]],[/'/,`string.invalid`]],whitespace:[[/[ \t\r\n]+/,``],[/\/\*\*(?!\/)/,`comment.doc`,`@apexdoc`],[/\/\*/,`comment`,`@comment`],[/\/\/.*$/,`comment`]],comment:[[/[^\/*]+/,`comment`],[/\*\//,`comment`,`@pop`],[/[\/*]/,`comment`]],apexdoc:[[/[^\/*]+/,`comment.doc`],[/\*\//,`comment.doc`,`@pop`],[/[\/*]/,`comment.doc`]],string:[[/[^\\"']+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/["']/,{cases:{"$#==$S2":{token:`string`,next:`@pop`},"@default":`string`}}]]}};export{e as conf,i as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`#`}},t={defaultToken:`keyword`,ignoreCase:!0,tokenPostfix:`.azcli`,str:/[^#\s]/,tokenizer:{root:[{include:`@comment`},[/\s-+@str*\s*/,{cases:{"@eos":{token:`key.identifier`,next:`@popall`},"@default":{token:`key.identifier`,next:`@type`}}}],[/^-+@str*\s*/,{cases:{"@eos":{token:`key.identifier`,next:`@popall`},"@default":{token:`key.identifier`,next:`@type`}}}]],type:[{include:`@comment`},[/-+@str*\s*/,{cases:{"@eos":{token:`key.identifier`,next:`@popall`},"@default":`key.identifier`}}],[/@str+\s*/,{cases:{"@eos":{token:`string`,next:`@popall`},"@default":`string`}}]],comment:[[/#.*$/,{cases:{"@eos":{token:`comment`,next:`@popall`}}}]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`REM`},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`}],surroundingPairs:[{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`}],folding:{markers:{start:RegExp(`^\\s*(::\\s*|REM\\s+)#region`),end:RegExp(`^\\s*(::\\s*|REM\\s+)#endregion`)}}},t={defaultToken:``,ignoreCase:!0,tokenPostfix:`.bat`,brackets:[{token:`delimiter.bracket`,open:`{`,close:`}`},{token:`delimiter.parenthesis`,open:`(`,close:`)`},{token:`delimiter.square`,open:`[`,close:`]`}],keywords:/call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,symbols:/[=><!~?&|+\-*\/\^;\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)(rem(?:\s.*|))$/,[``,`comment`]],[/(\@?)(@keywords)(?!\w)/,[{token:`keyword`},{token:`keyword.$2`}]],[/[ \t\r\n]+/,``],[/setlocal(?!\w)/,`keyword.tag-setlocal`],[/endlocal(?!\w)/,`keyword.tag-setlocal`],[/[a-zA-Z_]\w*/,``],[/:\w*/,`metatag`],[/%[^%]+%/,`variable`],[/%%[\w]+(?!\w)/,`variable`],[/[{}()\[\]]/,`@brackets`],[/@symbols/,`delimiter`],[/\d*\.\d+([eE][\-+]?\d+)?/,`number.float`],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,`number.hex`],[/\d+/,`number`],[/[;,.]/,`delimiter`],[/"/,`string`,`@string."`],[/'/,`string`,`@string.'`]],string:[[/[^\\"'%]+/,{cases:{"@eos":{token:`string`,next:`@popall`},"@default":`string`}}],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/%[\w ]+%/,`variable`],[/%%[\w]+(?!\w)/,`variable`],[/["']/,{cases:{"$#==$S2":{token:`string`,next:`@pop`},"@default":`string`}}],[/$/,`string`,`@popall`]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=(e=>`\\b${e}\\b`)(`[_a-zA-Z][_a-zA-Z0-9]*`),t=[`targetScope`,`resource`,`module`,`param`,`var`,`output`,`for`,`in`,`if`,`existing`],n=[`true`,`false`,`null`],r=`[ \\t\\r\\n]`,i=`[0-9]+`,a={comments:{lineComment:`//`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`'`,close:`'`},{open:`'''`,close:`'''`}],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`'`,close:`'`,notIn:[`string`,`comment`]},{open:`'''`,close:`'''`,notIn:[`string`,`comment`]}],autoCloseBefore:`:.,=}])'
|
|
2
|
+
`,indentationRules:{increaseIndentPattern:RegExp(`^((?!\\/\\/).)*(\\{[^}"'\`]*|\\([^)"'\`]*|\\[[^\\]"'\`]*)$`),decreaseIndentPattern:RegExp(`^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$`)}},o={defaultToken:``,tokenPostfix:`.bicep`,brackets:[{open:`{`,close:`}`,token:`delimiter.curly`},{open:`[`,close:`]`,token:`delimiter.square`},{open:`(`,close:`)`,token:`delimiter.parenthesis`}],symbols:/[=><!~?:&|+\-*/^%]+/,keywords:t,namedLiterals:n,escapes:"\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",tokenizer:{root:[{include:`@expression`},{include:`@whitespace`}],stringVerbatim:[{regex:`(|'|'')[^']`,action:{token:`string`}},{regex:`'''`,action:{token:`string.quote`,next:`@pop`}}],stringLiteral:[{regex:"\\${",action:{token:`delimiter.bracket`,next:`@bracketCounting`}},{regex:`[^\\\\'$]+`,action:{token:`string`}},{regex:`@escapes`,action:{token:`string.escape`}},{regex:`\\\\.`,action:{token:`string.escape.invalid`}},{regex:`'`,action:{token:`string`,next:`@pop`}}],bracketCounting:[{regex:`{`,action:{token:`delimiter.bracket`,next:`@bracketCounting`}},{regex:`}`,action:{token:`delimiter.bracket`,next:`@pop`}},{include:`expression`}],comment:[{regex:`[^\\*]+`,action:{token:`comment`}},{regex:`\\*\\/`,action:{token:`comment`,next:`@pop`}},{regex:`[\\/*]`,action:{token:`comment`}}],whitespace:[{regex:r},{regex:`\\/\\*`,action:{token:`comment`,next:`@comment`}},{regex:`\\/\\/.*$`,action:{token:`comment`}}],expression:[{regex:`'''`,action:{token:`string.quote`,next:`@stringVerbatim`}},{regex:`'`,action:{token:`string.quote`,next:`@stringLiteral`}},{regex:i,action:{token:`number`}},{regex:e,action:{cases:{"@keywords":{token:`keyword`},"@namedLiterals":{token:`keyword`},"@default":{token:`identifier`}}}}]}};export{a as conf,o as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`//`,blockComment:[`(*`,`*)`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`],[`<`,`>`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`<`,close:`>`},{open:`'`,close:`'`},{open:`"`,close:`"`},{open:`(*`,close:`*)`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`<`,close:`>`},{open:`'`,close:`'`},{open:`"`,close:`"`},{open:`(*`,close:`*)`}]},t={defaultToken:``,tokenPostfix:`.cameligo`,ignoreCase:!0,brackets:[{open:`{`,close:`}`,token:`delimiter.curly`},{open:`[`,close:`]`,token:`delimiter.square`},{open:`(`,close:`)`,token:`delimiter.parenthesis`},{open:`<`,close:`>`,token:`delimiter.angle`}],keywords:`abs.assert.block.Bytes.case.Crypto.Current.else.failwith.false.for.fun.if.in.let.let%entry.let%init.List.list.Map.map.match.match%nat.mod.not.operation.Operation.of.record.Set.set.sender.skip.source.String.then.to.true.type.with`.split(`.`),typeKeywords:[`int`,`unit`,`string`,`tz`,`nat`,`bool`],operators:[`=`,`>`,`<`,`<=`,`>=`,`<>`,`:`,`:=`,`and`,`mod`,`or`,`+`,`-`,`*`,`/`,`@`,`&`,`^`,`%`,`->`,`<-`,`&&`,`||`],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:`keyword.$0`},"@default":`identifier`}}],{include:`@whitespace`},[/[{}()\[\]]/,`@brackets`],[/[<>](?!@symbols)/,`@brackets`],[/@symbols/,{cases:{"@operators":`delimiter`,"@default":``}}],[/\d*\.\d+([eE][\-+]?\d+)?/,`number.float`],[/\$[0-9a-fA-F]{1,16}/,`number.hex`],[/\d+/,`number`],[/[;,.]/,`delimiter`],[/'([^'\\]|\\.)*$/,`string.invalid`],[/'/,`string`,`@string`],[/'[^\\']'/,`string`],[/'/,`string.invalid`],[/\#\d+/,`string`]],comment:[[/[^\(\*]+/,`comment`],[/\*\)/,`comment`,`@pop`],[/\(\*/,`comment`]],string:[[/[^\\']+/,`string`],[/\\./,`string.escape.invalid`],[/'/,{token:`string.quote`,bracket:`@close`,next:`@pop`}]],whitespace:[[/[ \t\r\n]+/,`white`],[/\(\*/,`comment`,`@comment`],[/\/\/.*$/,`comment`]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`;;`},brackets:[[`[`,`]`],[`(`,`)`],[`{`,`}`]],autoClosingPairs:[{open:`[`,close:`]`},{open:`"`,close:`"`},{open:`(`,close:`)`},{open:`{`,close:`}`}],surroundingPairs:[{open:`[`,close:`]`},{open:`"`,close:`"`},{open:`(`,close:`)`},{open:`{`,close:`}`}]},t={defaultToken:``,ignoreCase:!0,tokenPostfix:`.clj`,brackets:[{open:`[`,close:`]`,token:`delimiter.square`},{open:`(`,close:`)`,token:`delimiter.parenthesis`},{open:`{`,close:`}`,token:`delimiter.curly`}],constants:[`true`,`false`,`nil`],numbers:/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,characters:/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,escapes:/^\\(?:["'\\bfnrt]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,qualifiedSymbols:/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/,specialForms:[`.`,`catch`,`def`,`do`,`if`,`monitor-enter`,`monitor-exit`,`new`,`quote`,`recur`,`set!`,`throw`,`try`,`var`],coreSymbols:`*,*',*1,*2,*3,*agent*,*allow-unresolved-vars*,*assert*,*clojure-version*,*command-line-args*,*compile-files*,*compile-path*,*compiler-options*,*data-readers*,*default-data-reader-fn*,*e,*err*,*file*,*flush-on-newline*,*fn-loader*,*in*,*math-context*,*ns*,*out*,*print-dup*,*print-length*,*print-level*,*print-meta*,*print-namespace-maps*,*print-readably*,*read-eval*,*reader-resolver*,*source-path*,*suppress-read*,*unchecked-math*,*use-context-classloader*,*verbose-defrecords*,*warn-on-reflection*,+,+',-,-',->,->>,->ArrayChunk,->Eduction,->Vec,->VecNode,->VecSeq,-cache-protocol-fn,-reset-methods,..,/,<,<=,=,==,>,>=,EMPTY-NODE,Inst,StackTraceElement->vec,Throwable->map,accessor,aclone,add-classpath,add-watch,agent,agent-error,agent-errors,aget,alength,alias,all-ns,alter,alter-meta!,alter-var-root,amap,ancestors,and,any?,apply,areduce,array-map,as->,aset,aset-boolean,aset-byte,aset-char,aset-double,aset-float,aset-int,aset-long,aset-short,assert,assoc,assoc!,assoc-in,associative?,atom,await,await-for,await1,bases,bean,bigdec,bigint,biginteger,binding,bit-and,bit-and-not,bit-clear,bit-flip,bit-not,bit-or,bit-set,bit-shift-left,bit-shift-right,bit-test,bit-xor,boolean,boolean-array,boolean?,booleans,bound-fn,bound-fn*,bound?,bounded-count,butlast,byte,byte-array,bytes,bytes?,case,cast,cat,char,char-array,char-escape-string,char-name-string,char?,chars,chunk,chunk-append,chunk-buffer,chunk-cons,chunk-first,chunk-next,chunk-rest,chunked-seq?,class,class?,clear-agent-errors,clojure-version,coll?,comment,commute,comp,comparator,compare,compare-and-set!,compile,complement,completing,concat,cond,cond->,cond->>,condp,conj,conj!,cons,constantly,construct-proxy,contains?,count,counted?,create-ns,create-struct,cycle,dec,dec',decimal?,declare,dedupe,default-data-readers,definline,definterface,defmacro,defmethod,defmulti,defn,defn-,defonce,defprotocol,defrecord,defstruct,deftype,delay,delay?,deliver,denominator,deref,derive,descendants,destructure,disj,disj!,dissoc,dissoc!,distinct,distinct?,doall,dorun,doseq,dosync,dotimes,doto,double,double-array,double?,doubles,drop,drop-last,drop-while,eduction,empty,empty?,ensure,ensure-reduced,enumeration-seq,error-handler,error-mode,eval,even?,every-pred,every?,ex-data,ex-info,extend,extend-protocol,extend-type,extenders,extends?,false?,ffirst,file-seq,filter,filterv,find,find-keyword,find-ns,find-protocol-impl,find-protocol-method,find-var,first,flatten,float,float-array,float?,floats,flush,fn,fn?,fnext,fnil,for,force,format,frequencies,future,future-call,future-cancel,future-cancelled?,future-done?,future?,gen-class,gen-interface,gensym,get,get-in,get-method,get-proxy-class,get-thread-bindings,get-validator,group-by,halt-when,hash,hash-combine,hash-map,hash-ordered-coll,hash-set,hash-unordered-coll,ident?,identical?,identity,if-let,if-not,if-some,ifn?,import,in-ns,inc,inc',indexed?,init-proxy,inst-ms,inst-ms*,inst?,instance?,int,int-array,int?,integer?,interleave,intern,interpose,into,into-array,ints,io!,isa?,iterate,iterator-seq,juxt,keep,keep-indexed,key,keys,keyword,keyword?,last,lazy-cat,lazy-seq,let,letfn,line-seq,list,list*,list?,load,load-file,load-reader,load-string,loaded-libs,locking,long,long-array,longs,loop,macroexpand,macroexpand-1,make-array,make-hierarchy,map,map-entry?,map-indexed,map?,mapcat,mapv,max,max-key,memfn,memoize,merge,merge-with,meta,method-sig,methods,min,min-key,mix-collection-hash,mod,munge,name,namespace,namespace-munge,nat-int?,neg-int?,neg?,newline,next,nfirst,nil?,nnext,not,not-any?,not-empty,not-every?,not=,ns,ns-aliases,ns-imports,ns-interns,ns-map,ns-name,ns-publics,ns-refers,ns-resolve,ns-unalias,ns-unmap,nth,nthnext,nthrest,num,number?,numerator,object-array,odd?,or,parents,partial,partition,partition-all,partition-by,pcalls,peek,persistent!,pmap,pop,pop!,pop-thread-bindings,pos-int?,pos?,pr,pr-str,prefer-method,prefers,primitives-classnames,print,print-ctor,print-dup,print-method,print-simple,print-str,printf,println,println-str,prn,prn-str,promise,proxy,proxy-call-with-super,proxy-mappings,proxy-name,proxy-super,push-thread-bindings,pvalues,qualified-ident?,qualified-keyword?,qualified-symbol?,quot,rand,rand-int,rand-nth,random-sample,range,ratio?,rational?,rationalize,re-find,re-groups,re-matcher,re-matches,re-pattern,re-seq,read,read-line,read-string,reader-conditional,reader-conditional?,realized?,record?,reduce,reduce-kv,reduced,reduced?,reductions,ref,ref-history-count,ref-max-history,ref-min-history,ref-set,refer,refer-clojure,reify,release-pending-sends,rem,remove,remove-all-methods,remove-method,remove-ns,remove-watch,repeat,repeatedly,replace,replicate,require,reset!,reset-meta!,reset-vals!,resolve,rest,restart-agent,resultset-seq,reverse,reversible?,rseq,rsubseq,run!,satisfies?,second,select-keys,send,send-off,send-via,seq,seq?,seqable?,seque,sequence,sequential?,set,set-agent-send-executor!,set-agent-send-off-executor!,set-error-handler!,set-error-mode!,set-validator!,set?,short,short-array,shorts,shuffle,shutdown-agents,simple-ident?,simple-keyword?,simple-symbol?,slurp,some,some->,some->>,some-fn,some?,sort,sort-by,sorted-map,sorted-map-by,sorted-set,sorted-set-by,sorted?,special-symbol?,spit,split-at,split-with,str,string?,struct,struct-map,subs,subseq,subvec,supers,swap!,swap-vals!,symbol,symbol?,sync,tagged-literal,tagged-literal?,take,take-last,take-nth,take-while,test,the-ns,thread-bound?,time,to-array,to-array-2d,trampoline,transduce,transient,tree-seq,true?,type,unchecked-add,unchecked-add-int,unchecked-byte,unchecked-char,unchecked-dec,unchecked-dec-int,unchecked-divide-int,unchecked-double,unchecked-float,unchecked-inc,unchecked-inc-int,unchecked-int,unchecked-long,unchecked-multiply,unchecked-multiply-int,unchecked-negate,unchecked-negate-int,unchecked-remainder-int,unchecked-short,unchecked-subtract,unchecked-subtract-int,underive,unquote,unquote-splicing,unreduced,unsigned-bit-shift-right,update,update-in,update-proxy,uri?,use,uuid?,val,vals,var-get,var-set,var?,vary-meta,vec,vector,vector-of,vector?,volatile!,volatile?,vreset!,vswap!,when,when-first,when-let,when-not,when-some,while,with-bindings,with-bindings*,with-in-str,with-loading-context,with-local-vars,with-meta,with-open,with-out-str,with-precision,with-redefs,with-redefs-fn,xml-seq,zero?,zipmap`.split(`,`),tokenizer:{root:[{include:`@whitespace`},[/@numbers/,`number`],[/@characters/,`string`],{include:`@string`},[/[()\[\]{}]/,`@brackets`],[/\/#"(?:\.|(?:")|[^"\n])*"\/g/,`regexp`],[/[#'@^`~]/,`meta`],[/@qualifiedSymbols/,{cases:{"^:.+$":`constant`,"@specialForms":`keyword`,"@coreSymbols":`keyword`,"@constants":`constant`,"@default":`identifier`}}]],whitespace:[[/[\s,]+/,`white`],[/;.*$/,`comment`],[/\(comment\b/,`comment`,`@comment`]],comment:[[/\(/,`comment`,`@push`],[/\)/,`comment`,`@pop`],[/[^()]/,`comment`]],string:[[/"/,`string`,`@multiLineString`]],multiLineString:[[/"/,`string`,`@popall`],[/@escapes/,`string.escape`],[/./,`string`]]}};export{e as conf,t as language};
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:[`###`,`###`],lineComment:`#`},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],folding:{markers:{start:RegExp(`^\\s*#region\\b`),end:RegExp(`^\\s*#endregion\\b`)}}},t={defaultToken:``,ignoreCase:!0,tokenPostfix:`.coffee`,brackets:[{open:`{`,close:`}`,token:`delimiter.curly`},{open:`[`,close:`]`,token:`delimiter.square`},{open:`(`,close:`)`,token:`delimiter.parenthesis`}],regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:`and.or.is.isnt.not.on.yes.@.no.off.true.false.null.this.new.delete.typeof.in.instanceof.return.throw.break.continue.debugger.if.else.switch.for.while.do.try.catch.finally.class.extends.super.undefined.then.unless.until.loop.of.by.when`.split(`.`),symbols:/[=><!~?&%|+\-*\/\^\.,\:]+/,escapes:/\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\@[a-zA-Z_]\w*/,`variable.predefined`],[/[a-zA-Z_]\w*/,{cases:{this:`variable.predefined`,"@keywords":{token:`keyword.$0`},"@default":``}}],[/[ \t\r\n]+/,``],[/###/,`comment`,`@comment`],[/#.*$/,`comment`],[`///`,{token:`regexp`,next:`@hereregexp`}],[/^(\s*)(@regEx)/,[``,`regexp`]],[/(\()(\s*)(@regEx)/,[`@brackets`,``,`regexp`]],[/(\,)(\s*)(@regEx)/,[`delimiter`,``,`regexp`]],[/(\=)(\s*)(@regEx)/,[`delimiter`,``,`regexp`]],[/(\:)(\s*)(@regEx)/,[`delimiter`,``,`regexp`]],[/(\[)(\s*)(@regEx)/,[`@brackets`,``,`regexp`]],[/(\!)(\s*)(@regEx)/,[`delimiter`,``,`regexp`]],[/(\&)(\s*)(@regEx)/,[`delimiter`,``,`regexp`]],[/(\|)(\s*)(@regEx)/,[`delimiter`,``,`regexp`]],[/(\?)(\s*)(@regEx)/,[`delimiter`,``,`regexp`]],[/(\{)(\s*)(@regEx)/,[`@brackets`,``,`regexp`]],[/(\;)(\s*)(@regEx)/,[``,``,`regexp`]],[/}/,{cases:{"$S2==interpolatedstring":{token:`string`,next:`@pop`},"@default":`@brackets`}}],[/[{}()\[\]]/,`@brackets`],[/@symbols/,`delimiter`],[/\d+[eE]([\-+]?\d+)?/,`number.float`],[/\d+\.\d+([eE][\-+]?\d+)?/,`number.float`],[/0[xX][0-9a-fA-F]+/,`number.hex`],[/0[0-7]+(?!\d)/,`number.octal`],[/\d+/,`number`],[/[,.]/,`delimiter`],[/"""/,`string`,`@herestring."""`],[/'''/,`string`,`@herestring.'''`],[/"/,{cases:{"@eos":`string`,"@default":{token:`string`,next:`@string."`}}}],[/'/,{cases:{"@eos":`string`,"@default":{token:`string`,next:`@string.'`}}}]],string:[[/[^"'\#\\]+/,`string`],[/@escapes/,`string.escape`],[/\./,`string.escape.invalid`],[/\./,`string.escape.invalid`],[/#{/,{cases:{'$S2=="':{token:`string`,next:`root.interpolatedstring`},"@default":`string`}}],[/["']/,{cases:{"$#==$S2":{token:`string`,next:`@pop`},"@default":`string`}}],[/#/,`string`]],herestring:[[/("""|''')/,{cases:{"$1==$S2":{token:`string`,next:`@pop`},"@default":`string`}}],[/[^#\\'"]+/,`string`],[/['"]+/,`string`],[/@escapes/,`string.escape`],[/\./,`string.escape.invalid`],[/#{/,{token:`string.quote`,next:`root.interpolatedstring`}],[/#/,`string`]],comment:[[/[^#]+/,`comment`],[/###/,`comment`,`@pop`],[/#/,`comment`]],hereregexp:[[/[^\\\/#]+/,`regexp`],[/\\./,`regexp`],[/#.*$/,`comment`],[`///[igm]*`,{token:`regexp`,next:`@pop`}],[/\//,`regexp`]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`//`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`[`,close:`]`},{open:`{`,close:`}`},{open:`(`,close:`)`},{open:`'`,close:`'`,notIn:[`string`,`comment`]},{open:`"`,close:`"`,notIn:[`string`]}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],folding:{markers:{start:RegExp(`^\\s*#pragma\\s+region\\b`),end:RegExp(`^\\s*#pragma\\s+endregion\\b`)}}},t={defaultToken:``,tokenPostfix:`.cpp`,brackets:[{token:`delimiter.curly`,open:`{`,close:`}`},{token:`delimiter.parenthesis`,open:`(`,close:`)`},{token:`delimiter.square`,open:`[`,close:`]`},{token:`delimiter.angle`,open:`<`,close:`>`}],keywords:`abstract.amp.array.auto.bool.break.case.catch.char.class.const.constexpr.const_cast.continue.cpu.decltype.default.delegate.delete.do.double.dynamic_cast.each.else.enum.event.explicit.export.extern.false.final.finally.float.for.friend.gcnew.generic.goto.if.in.initonly.inline.int.interface.interior_ptr.internal.literal.long.mutable.namespace.new.noexcept.nullptr.__nullptr.operator.override.partial.pascal.pin_ptr.private.property.protected.public.ref.register.reinterpret_cast.restrict.return.safe_cast.sealed.short.signed.sizeof.static.static_assert.static_cast.struct.switch.template.this.thread_local.throw.tile_static.true.try.typedef.typeid.typename.union.unsigned.using.virtual.void.volatile.wchar_t.where.while._asm._based._cdecl._declspec._fastcall._if_exists._if_not_exists._inline._multiple_inheritance._pascal._single_inheritance._stdcall._virtual_inheritance._w64.__abstract.__alignof.__asm.__assume.__based.__box.__builtin_alignof.__cdecl.__clrcall.__declspec.__delegate.__event.__except.__fastcall.__finally.__forceinline.__gc.__hook.__identifier.__if_exists.__if_not_exists.__inline.__int128.__int16.__int32.__int64.__int8.__interface.__leave.__m128.__m128d.__m128i.__m256.__m256d.__m256i.__m512.__m512d.__m512i.__m64.__multiple_inheritance.__newslot.__nogc.__noop.__nounwind.__novtordisp.__pascal.__pin.__pragma.__property.__ptr32.__ptr64.__raise.__restrict.__resume.__sealed.__single_inheritance.__stdcall.__super.__thiscall.__try.__try_cast.__typeof.__unaligned.__unhook.__uuidof.__value.__virtual_inheritance.__w64.__wchar_t`.split(`.`),operators:`=.>.<.!.~.?.:.==.<=.>=.!=.&&.||.++.--.+.-.*./.&.|.^.%.<<.>>.+=.-=.*=./=.&=.|=.^=.%=.<<=.>>=`.split(`.`),symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[0abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/([uU](ll|LL|l|L)|(ll|LL|l|L)?[uU]?)/,floatsuffix:/[fFlL]?/,encoding:/u|u8|U|L/,tokenizer:{root:[[/@encoding?R\"(?:([^ ()\\\t]*))\(/,{token:`string.raw.begin`,next:`@raw.$1`}],[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:`keyword.$0`},"@default":`identifier`}}],[/^\s*#\s*include/,{token:`keyword.directive.include`,next:`@include`}],[/^\s*#\s*\w+/,`keyword.directive`],{include:`@whitespace`},[/\[\s*\[/,{token:`annotation`,next:`@annotation`}],[/[{}()<>\[\]]/,`@brackets`],[/@symbols/,{cases:{"@operators":`delimiter`,"@default":``}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,`number.float`],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,`number.float`],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,`number.hex`],[/0[0-7']*[0-7](@integersuffix)/,`number.octal`],[/0[bB][0-1']*[0-1](@integersuffix)/,`number.binary`],[/\d[\d']*\d(@integersuffix)/,`number`],[/\d(@integersuffix)/,`number`],[/[;,.]/,`delimiter`],[/"([^"\\]|\\.)*$/,`string.invalid`],[/"/,`string`,`@string`],[/'[^\\']'/,`string`],[/(')(@escapes)(')/,[`string`,`string.escape`,`string`]],[/'/,`string.invalid`]],whitespace:[[/[ \t\r\n]+/,``],[/\/\*\*(?!\/)/,`comment.doc`,`@doccomment`],[/\/\*/,`comment`,`@comment`],[/\/\/.*\\$/,`comment`,`@linecomment`],[/\/\/.*$/,`comment`]],comment:[[/[^\/*]+/,`comment`],[/\*\//,`comment`,`@pop`],[/[\/*]/,`comment`]],linecomment:[[/.*[^\\]$/,`comment`,`@pop`],[/[^]+/,`comment`]],doccomment:[[/[^\/*]+/,`comment.doc`],[/\*\//,`comment.doc`,`@pop`],[/[\/*]/,`comment.doc`]],string:[[/[^\\"]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/"/,`string`,`@pop`]],raw:[[/[^)]+/,`string.raw`],[/\)$S2\"/,{token:`string.raw.end`,next:`@pop`}],[/\)/,`string.raw`]],annotation:[{include:`@whitespace`},[/using|alignas/,`keyword`],[/[a-zA-Z0-9_]+/,`annotation`],[/[,:]/,`delimiter`],[/[()]/,`@brackets`],[/\]\s*\]/,{token:`annotation`,next:`@pop`}]],include:[[/(\s*)(<)([^<>]*)(>)/,[``,`keyword.directive.include.begin`,`string.include.identifier`,{token:`keyword.directive.include.end`,next:`@pop`}]],[/(\s*)(")([^"]*)(")/,[``,`keyword.directive.include.begin`,`string.include.identifier`,{token:`keyword.directive.include.end`,next:`@pop`}]]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:`//`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`'`,close:`'`,notIn:[`string`,`comment`]},{open:`"`,close:`"`,notIn:[`string`,`comment`]}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`<`,close:`>`},{open:`'`,close:`'`},{open:`"`,close:`"`}],folding:{markers:{start:RegExp(`^\\s*#region\\b`),end:RegExp(`^\\s*#endregion\\b`)}}},t={defaultToken:``,tokenPostfix:`.cs`,brackets:[{open:`{`,close:`}`,token:`delimiter.curly`},{open:`[`,close:`]`,token:`delimiter.square`},{open:`(`,close:`)`,token:`delimiter.parenthesis`},{open:`<`,close:`>`,token:`delimiter.angle`}],keywords:`extern.alias.using.bool.decimal.sbyte.byte.short.ushort.int.uint.long.ulong.char.float.double.object.dynamic.string.assembly.is.as.ref.out.this.base.new.typeof.void.checked.unchecked.default.delegate.var.const.if.else.switch.case.while.do.for.foreach.in.break.continue.goto.return.throw.try.catch.finally.lock.yield.from.let.where.join.on.equals.into.orderby.ascending.descending.select.group.by.namespace.partial.class.field.event.method.param.public.protected.internal.private.abstract.sealed.static.struct.readonly.volatile.virtual.override.params.get.set.add.remove.operator.true.false.implicit.explicit.interface.enum.null.async.await.fixed.sizeof.stackalloc.unsafe.nameof.when`.split(`.`),namespaceFollows:[`namespace`,`using`],parenFollows:[`if`,`for`,`while`,`switch`,`foreach`,`using`,`catch`,`when`],operators:`=.??.||.&&.|.^.&.==.!=.<=.>=.<<.+.-.*./.%.!.~.++.--.+=.-=.*=./=.%=.&=.|=.^=.<<=.>>=.>>.=>`.split(`.`),symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\@?[a-zA-Z_]\w*/,{cases:{"@namespaceFollows":{token:`keyword.$0`,next:`@namespace`},"@keywords":{token:`keyword.$0`,next:`@qualified`},"@default":{token:`identifier`,next:`@qualified`}}}],{include:`@whitespace`},[/}/,{cases:{"$S2==interpolatedstring":{token:`string.quote`,next:`@pop`},"$S2==litinterpstring":{token:`string.quote`,next:`@pop`},"@default":`@brackets`}}],[/[{}()\[\]]/,`@brackets`],[/[<>](?!@symbols)/,`@brackets`],[/@symbols/,{cases:{"@operators":`delimiter`,"@default":``}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/,`number.float`],[/0[xX][0-9a-fA-F_]+/,`number.hex`],[/0[bB][01_]+/,`number.hex`],[/[0-9_]+/,`number`],[/[;,.]/,`delimiter`],[/"([^"\\]|\\.)*$/,`string.invalid`],[/"/,{token:`string.quote`,next:`@string`}],[/\$\@"/,{token:`string.quote`,next:`@litinterpstring`}],[/\@"/,{token:`string.quote`,next:`@litstring`}],[/\$"/,{token:`string.quote`,next:`@interpolatedstring`}],[/'[^\\']'/,`string`],[/(')(@escapes)(')/,[`string`,`string.escape`,`string`]],[/'/,`string.invalid`]],qualified:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:`keyword.$0`},"@default":`identifier`}}],[/\./,`delimiter`],[``,``,`@pop`]],namespace:[{include:`@whitespace`},[/[A-Z]\w*/,`namespace`],[/[\.=]/,`delimiter`],[``,``,`@pop`]],comment:[[/[^\/*]+/,`comment`],[`\\*/`,`comment`,`@pop`],[/[\/*]/,`comment`]],string:[[/[^\\"]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/"/,{token:`string.quote`,next:`@pop`}]],litstring:[[/[^"]+/,`string`],[/""/,`string.escape`],[/"/,{token:`string.quote`,next:`@pop`}]],litinterpstring:[[/[^"{]+/,`string`],[/""/,`string.escape`],[/{{/,`string.escape`],[/}}/,`string.escape`],[/{/,{token:`string.quote`,next:`root.litinterpstring`}],[/"/,{token:`string.quote`,next:`@pop`}]],interpolatedstring:[[/[^\\"{]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/{{/,`string.escape`],[/}}/,`string.escape`],[/{/,{token:`string.quote`,next:`root.interpolatedstring`}],[/"/,{token:`string.quote`,next:`@pop`}]],whitespace:[[/^[ \t\v\f]*#((r)|(load))(?=\s)/,`directive.csx`],[/^[ \t\v\f]*#\w.*$/,`namespace.cpp`],[/[ \t\v\f\r\n]+/,``],[/\/\*/,`comment`,`@comment`],[/\/\/.*$/,`comment`]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={brackets:[],autoClosingPairs:[],surroundingPairs:[]},t={keywords:[],typeKeywords:[],tokenPostfix:`.csp`,operators:[],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/child-src/,`string.quote`],[/connect-src/,`string.quote`],[/default-src/,`string.quote`],[/font-src/,`string.quote`],[/frame-src/,`string.quote`],[/img-src/,`string.quote`],[/manifest-src/,`string.quote`],[/media-src/,`string.quote`],[/object-src/,`string.quote`],[/script-src/,`string.quote`],[/style-src/,`string.quote`],[/worker-src/,`string.quote`],[/base-uri/,`string.quote`],[/plugin-types/,`string.quote`],[/sandbox/,`string.quote`],[/disown-opener/,`string.quote`],[/form-action/,`string.quote`],[/frame-ancestors/,`string.quote`],[/report-uri/,`string.quote`],[/report-to/,`string.quote`],[/upgrade-insecure-requests/,`string.quote`],[/block-all-mixed-content/,`string.quote`],[/require-sri-for/,`string.quote`],[/reflected-xss/,`string.quote`],[/referrer/,`string.quote`],[/policy-uri/,`string.quote`],[/'self'/,`string.quote`],[/'unsafe-inline'/,`string.quote`],[/'unsafe-eval'/,`string.quote`],[/'strict-dynamic'/,`string.quote`],[/'unsafe-hashed-attributes'/,`string.quote`]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var e={wordPattern:/(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,comments:{blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`,notIn:[`string`,`comment`]},{open:`[`,close:`]`,notIn:[`string`,`comment`]},{open:`(`,close:`)`,notIn:[`string`,`comment`]},{open:`"`,close:`"`,notIn:[`string`,`comment`]},{open:`'`,close:`'`,notIn:[`string`,`comment`]}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],folding:{markers:{start:RegExp(`^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/`),end:RegExp(`^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/`)}}},t={defaultToken:``,tokenPostfix:`.css`,ws:`[
|
|
2
|
+
\r\f]*`,identifier:`-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*`,brackets:[{open:`{`,close:`}`,token:`delimiter.bracket`},{open:`[`,close:`]`,token:`delimiter.bracket`},{open:`(`,close:`)`,token:`delimiter.parenthesis`},{open:`<`,close:`>`,token:`delimiter.angle`}],tokenizer:{root:[{include:`@selector`}],selector:[{include:`@comments`},{include:`@import`},{include:`@strings`},[`[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)`,{token:`keyword`,next:`@keyframedeclaration`}],[`[@](page|content|font-face|-moz-document)`,{token:`keyword`}],[`[@](charset|namespace)`,{token:`keyword`,next:`@declarationbody`}],[`(url-prefix)(\\()`,[`attribute.value`,{token:`delimiter.parenthesis`,next:`@urldeclaration`}]],[`(url)(\\()`,[`attribute.value`,{token:`delimiter.parenthesis`,next:`@urldeclaration`}]],{include:`@selectorname`},[`[\\*]`,`tag`],[`[>\\+,]`,`delimiter`],[`\\[`,{token:`delimiter.bracket`,next:`@selectorattribute`}],[`{`,{token:`delimiter.bracket`,next:`@selectorbody`}]],selectorbody:[{include:`@comments`},[`[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))`,`attribute.name`,`@rulevalue`],[`}`,{token:`delimiter.bracket`,next:`@pop`}]],selectorname:[[`(\\.|#(?=[^{])|%|(@identifier)|:)+`,`tag`]],selectorattribute:[{include:`@term`},[`]`,{token:`delimiter.bracket`,next:`@pop`}]],term:[{include:`@comments`},[`(url-prefix)(\\()`,[`attribute.value`,{token:`delimiter.parenthesis`,next:`@urldeclaration`}]],[`(url)(\\()`,[`attribute.value`,{token:`delimiter.parenthesis`,next:`@urldeclaration`}]],{include:`@functioninvocation`},{include:`@numbers`},{include:`@name`},{include:`@strings`},[`([<>=\\+\\-\\*\\/\\^\\|\\~,])`,`delimiter`],[`,`,`delimiter`]],rulevalue:[{include:`@comments`},{include:`@strings`},{include:`@term`},[`!important`,`keyword`],[`;`,`delimiter`,`@pop`],[`(?=})`,{token:``,next:`@pop`}]],warndebug:[[`[@](warn|debug)`,{token:`keyword`,next:`@declarationbody`}]],import:[[`[@](import)`,{token:`keyword`,next:`@declarationbody`}]],urldeclaration:[{include:`@strings`},[`[^)\r
|
|
3
|
+
]+`,`string`],[`\\)`,{token:`delimiter.parenthesis`,next:`@pop`}]],parenthizedterm:[{include:`@term`},[`\\)`,{token:`delimiter.parenthesis`,next:`@pop`}]],declarationbody:[{include:`@term`},[`;`,`delimiter`,`@pop`],[`(?=})`,{token:``,next:`@pop`}]],comments:[[`\\/\\*`,`comment`,`@comment`],[`\\/\\/+.*`,`comment`]],comment:[[`\\*\\/`,`comment`,`@pop`],[/[^*/]+/,`comment`],[/./,`comment`]],name:[[`@identifier`,`attribute.value`]],numbers:[[`-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?`,{token:`attribute.value.number`,next:`@units`}],[`#[0-9a-fA-F_]+(?!\\w)`,`attribute.value.hex`]],units:[[`(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?`,`attribute.value.unit`,`@pop`]],keyframedeclaration:[[`@identifier`,`attribute.value`],[`{`,{token:`delimiter.bracket`,switchTo:`@keyframebody`}]],keyframebody:[{include:`@term`},[`{`,{token:`delimiter.bracket`,next:`@selectorbody`}],[`}`,{token:`delimiter.bracket`,next:`@pop`}]],functioninvocation:[[`@identifier\\(`,{token:`attribute.value`,next:`@functionarguments`}]],functionarguments:[[`\\$@identifier@ws:`,`attribute.name`],[`[,]`,`delimiter`],{include:`@term`},[`\\)`,{token:`attribute.value`,next:`@pop`}]],strings:[[`~?"`,{token:`string`,next:`@stringenddoublequote`}],[`~?'`,{token:`string`,next:`@stringendquote`}]],stringenddoublequote:[[`\\\\.`,`string`],[`"`,{token:`string`,next:`@pop`}],[/[^\\"]+/,`string`],[`.`,`string`]],stringendquote:[[`\\\\.`,`string`],[`'`,{token:`string`,next:`@pop`}],[/[^\\']+/,`string`],[`.`,`string`]]}};export{e as conf,t as language};
|