@dhzh/foundry 7.4.1 → 7.5.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 +22 -9
- package/dist/index.mjs +7 -8
- package/dist/skills/foundry/SKILL.md +7 -6
- package/dist/skills/foundry/references/agents.md +8 -1
- package/dist/skills/foundry/references/backups.md +7 -4
- package/dist/skills/foundry/references/skills.md +198 -8
- package/dist/web/assets/abap-DLDM7-KI.js +1 -0
- package/dist/web/assets/apex-DNDY2TF8.js +1 -0
- package/dist/web/assets/azcli-Y6nb8tq_.js +1 -0
- package/dist/web/assets/bat-BwHxbl9M.js +1 -0
- package/dist/web/assets/bicep-CFznDFnq.js +2 -0
- package/dist/web/assets/cameligo-Bf6VGUru.js +1 -0
- package/dist/web/assets/clojure-Dnu-v4kV.js +1 -0
- package/dist/web/assets/code-editor-D9YqPRu9.js +1123 -0
- package/dist/web/assets/codicon-MIjLT6Vj.ttf +0 -0
- package/dist/web/assets/coffee-Bd8akH9Z.js +1 -0
- package/dist/web/assets/cpp-BbWJElDN.js +1 -0
- package/dist/web/assets/csharp-Co3qMtFm.js +1 -0
- package/dist/web/assets/csp-D-4FJmMZ.js +1 -0
- package/dist/web/assets/css-DdJfP1eB.js +3 -0
- package/dist/web/assets/cypher-cTPe9QuQ.js +1 -0
- package/dist/web/assets/dart-BOtBlQCF.js +1 -0
- package/dist/web/assets/dockerfile-BG73LgW2.js +1 -0
- package/dist/web/assets/ecl-BEgZUVRK.js +1 -0
- package/dist/web/assets/elixir-B99a8Jiy.js +1 -0
- package/dist/web/assets/flow9-BeJ5waoc.js +1 -0
- package/dist/web/assets/freemarker2-Cqc6DC0X.js +3 -0
- package/dist/web/assets/fsharp-PahG7c26.js +1 -0
- package/dist/web/assets/go-acbASCJo.js +1 -0
- package/dist/web/assets/graphql-BxJiqAUM.js +1 -0
- package/dist/web/assets/handlebars-vhUCOYp2.js +1 -0
- package/dist/web/assets/hcl-DtV1sZF8.js +1 -0
- package/dist/web/assets/html-B9OWsMTw.js +1 -0
- package/dist/web/assets/index-BLI6_UFc.css +1 -0
- package/dist/web/assets/index-ZHZEjBKE.js +198 -0
- package/dist/web/assets/ini-CWGZJIwx.js +1 -0
- package/dist/web/assets/java-CXBNlu9o.js +1 -0
- package/dist/web/assets/javascript-VVG9ORob.js +1 -0
- package/dist/web/assets/json.worker-DjMR4gyh.js +77 -0
- package/dist/web/assets/jsonMode-83eKggsx.js +56 -0
- package/dist/web/assets/jsonMode-Dnk_vNU4.css +1 -0
- package/dist/web/assets/julia-cl7-CwDS.js +1 -0
- package/dist/web/assets/kotlin-s7OhZKlX.js +1 -0
- package/dist/web/assets/less-9HpZscsL.js +2 -0
- package/dist/web/assets/lexon-OrD6JF1K.js +1 -0
- package/dist/web/assets/liquid-iK6GMLcM.js +1 -0
- package/dist/web/assets/lua-Cyyb5UIc.js +1 -0
- package/dist/web/assets/m3-B8OfTtLu.js +1 -0
- package/dist/web/assets/mdx-C9wUAJkS.js +1 -0
- package/dist/web/assets/mips-CiqrrVzr.js +1 -0
- package/dist/web/assets/msdax-DmeGPVcC.js +1 -0
- package/dist/web/assets/mysql-C_tMU-Nz.js +1 -0
- package/dist/web/assets/objective-c-BDtDVThU.js +1 -0
- package/dist/web/assets/pascal-vHIfCaH5.js +1 -0
- package/dist/web/assets/pascaligo-DtZ0uQbO.js +1 -0
- package/dist/web/assets/perl-Ub6l9XKa.js +1 -0
- package/dist/web/assets/pgsql-BlNEE0v7.js +1 -0
- package/dist/web/assets/php-BBUBE1dy.js +1 -0
- package/dist/web/assets/pla-DSh2-awV.js +1 -0
- package/dist/web/assets/postiats-CocnycG-.js +1 -0
- package/dist/web/assets/powerquery-tScXyioY.js +1 -0
- package/dist/web/assets/powershell-COWaemsV.js +1 -0
- package/dist/web/assets/protobuf-Brw8urJB.js +2 -0
- package/dist/web/assets/pug-8SOpv6rk.js +1 -0
- package/dist/web/assets/python-C12wwW7S.js +1 -0
- package/dist/web/assets/qsharp-Bw9ernYp.js +1 -0
- package/dist/web/assets/r-j7ic8hl3.js +1 -0
- package/dist/web/assets/razor-BRAlXnRe.js +1 -0
- package/dist/web/assets/redis-Bu5POkcn.js +1 -0
- package/dist/web/assets/redshift-Bs9aos_-.js +1 -0
- package/dist/web/assets/restructuredtext-CqXO7rUv.js +1 -0
- package/dist/web/assets/ruby-zBfavPgS.js +1 -0
- package/dist/web/assets/rust-BzKRNQWT.js +1 -0
- package/dist/web/assets/sb-BBc9UKZt.js +1 -0
- package/dist/web/assets/scala-D9hQfWCl.js +1 -0
- package/dist/web/assets/scheme-BPhDTwHR.js +1 -0
- package/dist/web/assets/scss-CBJaRo0y.js +3 -0
- package/dist/web/assets/shell-DiJ1NA_G.js +1 -0
- package/dist/web/assets/solidity-Db0IVjzk.js +1 -0
- package/dist/web/assets/sophia-CnS9iZB_.js +1 -0
- package/dist/web/assets/sparql-CJmd_6j2.js +1 -0
- package/dist/web/assets/sql-ClhHkBeG.js +1 -0
- package/dist/web/assets/st-CHwy0fLd.js +1 -0
- package/dist/web/assets/swift-CnmFD0ga.js +1 -0
- package/dist/web/assets/systemverilog-Bs9z6M-B.js +1 -0
- package/dist/web/assets/tcl-Dm6ycUr_.js +1 -0
- package/dist/web/assets/twig-Csy3S7wG.js +1 -0
- package/dist/web/assets/typescript-Bx_6s3Vf.js +1 -0
- package/dist/web/assets/typespec-Btyra-wh.js +1 -0
- package/dist/web/assets/vb-Db0cS2oM.js +1 -0
- package/dist/web/assets/wgsl-BTesnYfV.js +298 -0
- package/dist/web/assets/xml-CA6ArVkO.js +1 -0
- package/dist/web/assets/yaml-BfVk-7Da.js +1 -0
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/web/assets/index-BCwzZP_O.css +0 -1
- package/dist/web/assets/index-huTxUjD-.js +0 -155
- package/dist/web/assets/markdown-editor-nKIMVkN5.js +0 -1120
- /package/dist/web/assets/{markdown-editor-DMeNDIaI.css → code-editor-DMeNDIaI.css} +0 -0
|
@@ -1,9 +1,80 @@
|
|
|
1
1
|
# Skills
|
|
2
2
|
|
|
3
|
-
Use this reference to
|
|
4
|
-
|
|
3
|
+
Use this reference to list, read, create, edit, delete, or assign a local Skill.
|
|
4
|
+
Installing the bundled Foundry usage manual
|
|
5
5
|
into another agent uses [Settings](settings.md#install-this-skill).
|
|
6
6
|
|
|
7
|
+
## List and read
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
foundry skills list
|
|
11
|
+
foundry skills get hello
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
`list` returns a JSON array of `{ name, description }` summaries, or `[]` for
|
|
15
|
+
an empty library. `get` returns one complete Skill with `name`, `description`,
|
|
16
|
+
`content`, and nested `files`. Each file has a full skill-relative `path` and
|
|
17
|
+
`content`; each folder has `path` and `children`. The top-level `content` and
|
|
18
|
+
`SKILL.md` entry contain the Markdown body without YAML frontmatter.
|
|
19
|
+
|
|
20
|
+
## Save file changes
|
|
21
|
+
|
|
22
|
+
Prefer stdin for agent workflows: read the detail into memory, change its
|
|
23
|
+
`files`, and submit the JSON through `--file -`. Foundry reads this input in
|
|
24
|
+
memory and does not create an intermediate JSON file. For example, update only
|
|
25
|
+
the primary body while retaining every other entry:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
node <<'JS'
|
|
29
|
+
const { execFileSync } = require('node:child_process');
|
|
30
|
+
const skill = JSON.parse(execFileSync('foundry', ['skills', 'get', 'hello'], { encoding: 'utf8' }));
|
|
31
|
+
skill.files.find((file) => file.path === 'SKILL.md').content = '# Updated\n';
|
|
32
|
+
const saved = execFileSync('foundry', ['skills', 'save', 'hello', '--file', '-'], {
|
|
33
|
+
input: JSON.stringify({ files: skill.files }),
|
|
34
|
+
encoding: 'utf8',
|
|
35
|
+
});
|
|
36
|
+
process.stdout.write(saved);
|
|
37
|
+
JS
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
`--file` is required. An existing JSON file path is also supported, resolved
|
|
41
|
+
from the current working directory. That file belongs to the caller: Foundry
|
|
42
|
+
neither creates it nor deletes it. Avoid intermediate files in the user's
|
|
43
|
+
project or home directory when stdin can carry the input.
|
|
44
|
+
|
|
45
|
+
Input is `{ "files": [...] }`, or the complete `get` output. Only `files` is
|
|
46
|
+
applied; top-level `name`, `description`, and `content` are ignored. Use `edit`
|
|
47
|
+
for metadata changes. Example file tree:
|
|
48
|
+
|
|
49
|
+
```json
|
|
50
|
+
{
|
|
51
|
+
"files": [
|
|
52
|
+
{ "path": "SKILL.md", "content": "# Hello\n" },
|
|
53
|
+
{
|
|
54
|
+
"path": "scripts",
|
|
55
|
+
"children": [
|
|
56
|
+
{ "path": "scripts/hello.js", "content": "console.log('hello');\n" }
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{ "path": "references", "children": [] }
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Saving replaces the complete editable tree: new paths are created, included
|
|
65
|
+
text is replaced, and omitted entries are deleted. Include every entry you
|
|
66
|
+
want to retain. An empty folder uses `children: []`. `SKILL.md` is required;
|
|
67
|
+
its `content` replaces only the body and preserves frontmatter. Binary or
|
|
68
|
+
oversized existing files are returned with `content: null`; retain that entry
|
|
69
|
+
unchanged to preserve it, or omit it to delete it. Null cannot create a file.
|
|
70
|
+
Child symlinks are hidden from the tree, preserved, and never followed.
|
|
71
|
+
|
|
72
|
+
Paths use `/` and must be relative to the Skill. Text is limited to 2 MiB per
|
|
73
|
+
file and 16 MiB total; the tree supports at most 5,000 entries and 32 folder
|
|
74
|
+
levels. The same validation and storage transaction as the Web Save action
|
|
75
|
+
apply. Validation failures leave existing files intact. Success prints the
|
|
76
|
+
saved complete Skill. Assigned agents see saved contents through their links.
|
|
77
|
+
|
|
7
78
|
## Create manually
|
|
8
79
|
|
|
9
80
|
```bash
|
|
@@ -42,21 +113,140 @@ Markdown body starts empty. The name matches the directory. Writes use Foundry
|
|
|
42
113
|
storage transactions and interrupted writes are recovered. POSIX directories
|
|
43
114
|
and files use `0700` and `0600` permissions.
|
|
44
115
|
|
|
116
|
+
## Edit metadata
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
foundry skills edit hello --name hello-again --description "Use when greeting returning users."
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Both metadata options are required and follow the creation rules. The positional
|
|
123
|
+
argument is the existing name. Keeping the same name changes only the metadata.
|
|
124
|
+
Changing it moves the entire source directory and updates frontmatter. Existing
|
|
125
|
+
Markdown body, extra frontmatter fields, scripts, references, and other files
|
|
126
|
+
are preserved. An occupied destination, including an incomplete directory or
|
|
127
|
+
dangling symlink, is a conflict. Success prints the updated Skill as JSON.
|
|
128
|
+
|
|
129
|
+
## Delete
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
foundry skills delete hello-again
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
This permanently deletes the source directory and all of its files, and prints
|
|
136
|
+
the deleted Skill as JSON. Confirm the user's intent before invoking deletion
|
|
137
|
+
if they have not already explicitly requested it. The Web UI asks for a second
|
|
138
|
+
confirmation. `SKILL_NOT_FOUND` means the source no longer exists.
|
|
139
|
+
|
|
140
|
+
## External symbolic links
|
|
141
|
+
|
|
142
|
+
Both the Web library and CLI can assign each Skill to individual agents:
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
foundry agents skills list
|
|
146
|
+
foundry agents skills list chatgpt
|
|
147
|
+
foundry agents skills assign chatgpt --skill hello
|
|
148
|
+
foundry agents skills unassign chatgpt --skill hello
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
`list` returns an array of registered Skill agents with `id`, `name`, `icon`,
|
|
152
|
+
`directory`, and saved `skillNames`; the optional agent ID filters the array.
|
|
153
|
+
It shows persisted assignments even if a link was removed externally.
|
|
154
|
+
`assign` and `unassign` operate on one existing Skill and preserve other
|
|
155
|
+
assignments. Both print `{ "name": "hello", "agentIds": [...] }` describing
|
|
156
|
+
that Skill's remaining assigned agents. Repeated assignment repairs a missing
|
|
157
|
+
link without duplication; repeated unassignment is safe. Targets and help
|
|
158
|
+
come from the agent registry. Skill assignment is independent of instruction
|
|
159
|
+
application and takes effect immediately, without a separate enable command.
|
|
160
|
+
|
|
161
|
+
Assignment creates
|
|
162
|
+
a directory symlink in that registered agent's Skill directory; deselection
|
|
163
|
+
unlinks only entries pointing to the current source. The UI reads saved
|
|
164
|
+
`skills.skillNames` from each agent profile at
|
|
165
|
+
`~/.foundry/agents/<agent-id>.json`. Existing links are imported once for a
|
|
166
|
+
profile without Skill state. External link removal leaves the saved assignment
|
|
167
|
+
intact; assigning again or editing the Skill repairs a missing link. Available targets
|
|
168
|
+
come from the registry's Skills capability; the Instructions apply switch does
|
|
169
|
+
not control Skill availability.
|
|
170
|
+
|
|
171
|
+
Each edit creates or refreshes directory symlinks only for saved assigned
|
|
172
|
+
agents. This includes edits to description only and missing links for those
|
|
173
|
+
agents. Unassigned agents stay unassigned. Creation alone does not distribute
|
|
174
|
+
the Skill.
|
|
175
|
+
|
|
176
|
+
Renaming updates saved assignments, moves the source folder, establishes links
|
|
177
|
+
under the new name, and
|
|
178
|
+
explicitly unlinks the old names if they still point to the previous source.
|
|
179
|
+
Deleting removes saved assignments and explicitly unlinks matching entries in
|
|
180
|
+
registered locations.
|
|
181
|
+
Relative links and dangling links to the expected source are recognized.
|
|
182
|
+
Unrelated entries at a new destination cause `SKILL_LINK_CONFLICT` before the
|
|
183
|
+
source mutation commits. Unrelated old entries and user-replaced links survive
|
|
184
|
+
rename and deletion. Links elsewhere or under aliases are outside this scope.
|
|
185
|
+
|
|
186
|
+
Refresh creates a temporary symlink beside the destination and atomically
|
|
187
|
+
renames it over the existing matching link. This avoids the missing-link window
|
|
188
|
+
of unlink-then-link. The assignment record, source mutation, and synchronization
|
|
189
|
+
intent share the
|
|
190
|
+
redo journal; interrupted work resumes on the next storage operation or startup.
|
|
191
|
+
Agent discovery/reload remains separate from filesystem updates. See the
|
|
192
|
+
[symlink research](https://github.com/tinywaves/foundry/blob/main/docs/research/skill-symlink-lifecycle.md)
|
|
193
|
+
for filesystem behavior and official agent references.
|
|
194
|
+
|
|
45
195
|
## Errors and scope
|
|
46
196
|
|
|
47
197
|
- `INVALID_SKILL_INPUT`: fix the name or description and retry.
|
|
48
198
|
- `SKILL_NAME_CONFLICT`: choose another name. Existing directories, including
|
|
49
199
|
incomplete skill directories, are preserved.
|
|
200
|
+
- `SKILL_LINK_CONFLICT`: an unrelated entry occupies a registered agent
|
|
201
|
+
destination. Preserve that entry and resolve the conflict before retrying.
|
|
202
|
+
- `SKILL_AGENT_NOT_FOUND`: the agent is not registered with Skills support.
|
|
50
203
|
- Missing required flags produce CLI argument errors.
|
|
204
|
+
- `skills save` rejects malformed JSON and invalid file trees with the same
|
|
205
|
+
validation errors as the Web. Filesystem read failures such as `ENOENT`
|
|
206
|
+
indicate an invalid `--file` path. Operation errors use the JSON error
|
|
207
|
+
envelope on stderr and exit with code 1.
|
|
51
208
|
|
|
52
209
|
`manual` is currently the only implemented creation source. Local and URL
|
|
53
|
-
import menu entries are UI placeholders. Creation does not
|
|
54
|
-
|
|
210
|
+
import menu entries are UI placeholders. Creation does not distribute the Skill;
|
|
211
|
+
editing refreshes assigned agent links. Skill sources and assignments are
|
|
212
|
+
outside encrypted backup payloads and remain intact during backup import.
|
|
55
213
|
|
|
56
214
|
## Web UI
|
|
57
215
|
|
|
58
216
|
At `#/library/skills`, select **New skill → Create manually**, enter the same
|
|
59
|
-
metadata, and submit. Success opens `#/library/skills/<name>`. The page
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
and
|
|
217
|
+
metadata, and submit. Success opens `#/library/skills/<name>`. The detail page
|
|
218
|
+
has file navigation on the left and a Monaco source editor on the right,
|
|
219
|
+
including for an empty `SKILL.md` body. Save with the toolbar button or Cmd/Ctrl+S.
|
|
220
|
+
`GET /api/skills/:name` returns metadata and the complete nested `files` tree.
|
|
221
|
+
Files contain `path` and `content`; folders contain `path` and `children`.
|
|
222
|
+
The `SKILL.md` content is its Markdown body; frontmatter remains managed through
|
|
223
|
+
Overview. Other editable files contain their full source text. Binary and large
|
|
224
|
+
files use `content: null` and remain unchanged unless deleted from the draft.
|
|
225
|
+
File additions, edits, and deletions stay local until Save sends `{ files }` to
|
|
226
|
+
`PUT /api/skills/:name`. One transaction applies the complete tree. Existing agent
|
|
227
|
+
links see the saved files without redistribution. Switching files preserves all
|
|
228
|
+
unsaved edits; leaving the Skill prompts before discarding the whole draft.
|
|
229
|
+
Overview opens the shared metadata edit dialog; save the file draft first.
|
|
230
|
+
On desktop, the blank tree area and folder menus offer new files and folders.
|
|
231
|
+
Creation inserts an inline name field at the target directory: Enter or blur
|
|
232
|
+
confirms, Escape cancels, and blurring an empty field cancels. Duplicate and invalid
|
|
233
|
+
names show inline errors; creation stays in the file draft.
|
|
234
|
+
File menus offer only Delete, except required `SKILL.md`, which cannot be deleted.
|
|
235
|
+
Delete opens a confirmation popover below the selected tree row; confirming
|
|
236
|
+
removes the entry from the draft, and Save applies the deletion to disk.
|
|
237
|
+
On mobile, Files opens a drawer with always-visible action buttons and a full-width
|
|
238
|
+
New menu. The drawer stays open while entering a name and closes after creating
|
|
239
|
+
a file so it can be edited. New and deleted
|
|
240
|
+
entries are draft changes until Save. The compact library uses a list without a header.
|
|
241
|
+
Each row displays its name and muted description in that order on one
|
|
242
|
+
line; descriptions truncate to the available width. On desktop, hovering or
|
|
243
|
+
focusing a row reveals an actions button with Edit and Delete, reducing the space
|
|
244
|
+
available to the text. No button space is reserved otherwise. Mobile and
|
|
245
|
+
non-hover devices always show the button. An open menu keeps the button visible.
|
|
246
|
+
Desktop rows also always show an agent icon toggle group before the actions
|
|
247
|
+
button. Toggle an agent to assign or unassign the Skill immediately. The Assign
|
|
248
|
+
menu action opens the same toggle group in a dialog on desktop and mobile.
|
|
249
|
+
Right-click opens the same actions. Edit reuses the creation dialog with
|
|
250
|
+
prefilled metadata and stays on the list after saving; Delete requires
|
|
251
|
+
confirmation and refreshes the list. File history is not implemented yet. The shared editor recognizes registered Monaco languages
|
|
252
|
+
from file paths so future file entries can reuse the same editor.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const 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"],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"],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*"],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","*/","*:","--","/*","//"],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
|
+
const n={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:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},s=["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"],o=e=>e.charAt(0).toUpperCase()+e.substr(1);let t=[];s.forEach(e=>{t.push(e),t.push(e.toUpperCase()),t.push(o(e))});const i={defaultToken:"",tokenPostfix:".apex",keywords:t,operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],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{n as conf,i as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const 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
|
+
const e={comments:{lineComment:"REM"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|REM\\s+)#region"),end:new RegExp("^\\s*(::\\s*|REM\\s+)#endregion")}}},s={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,s as language};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const n=e=>`\\b${e}\\b`,t="[_a-zA-Z]",o="[_a-zA-Z0-9]",i=n(`${t}${o}*`),r=["targetScope","resource","module","param","var","output","for","in","if","existing"],s=["true","false","null"],c="[ \\t\\r\\n]",a="[0-9]+",g={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:new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),decreaseIndentPattern:new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")}},l={defaultToken:"",tokenPostfix:".bicep",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=><!~?:&|+\-*/^%]+/,keywords:r,namedLiterals:s,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:c},{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:a,action:{token:"number"}},{regex:i,action:{cases:{"@keywords":{token:"keyword"},"@namedLiterals":{token:"keyword"},"@default":{token:"identifier"}}}}]}};export{g as conf,l as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const 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:"*)"}]},o={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"],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,o as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const 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"],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};
|