1 | TOPICS = {'ARGV': 'special-var',
|
2 | 'BASHOPTS': 'special-var',
|
3 | 'BASHPID': 'special-var',
|
4 | 'BASH_LINENO': 'special-var',
|
5 | 'BASH_REMATCH': 'special-var',
|
6 | 'BASH_SOURCE': 'special-var',
|
7 | 'BashArray': 'type-method',
|
8 | 'BashAssoc': 'type-method',
|
9 | 'Bool': 'type-method',
|
10 | 'BoundFunc': 'type-method',
|
11 | 'BuiltinFunc': 'type-method',
|
12 | 'CDPATH': 'special-var',
|
13 | 'COMPREPLY': 'special-var',
|
14 | 'COMP_ARGV': 'special-var',
|
15 | 'COMP_CWORD': 'special-var',
|
16 | 'COMP_LINE': 'special-var',
|
17 | 'COMP_POINT': 'special-var',
|
18 | 'COMP_WORDBREAKS': 'special-var',
|
19 | 'COMP_WORDS': 'special-var',
|
20 | 'Command': 'type-method',
|
21 | 'DEBUG': 'plugin',
|
22 | 'ENV': 'special-var',
|
23 | 'ERR': 'plugin',
|
24 | 'EUID': 'special-var',
|
25 | 'EXIT': 'plugin',
|
26 | 'Expr': 'type-method',
|
27 | 'FUNCNAME': 'special-var',
|
28 | 'Float': 'type-method',
|
29 | 'GLOBIGNORE': 'special-var',
|
30 | 'HISTFILE': 'special-var',
|
31 | 'HOME': 'special-var',
|
32 | 'HOSTNAME': 'special-var',
|
33 | 'IFS': 'special-var',
|
34 | 'Int': 'type-method',
|
35 | 'LANG': 'special-var',
|
36 | 'LINENO': 'special-var',
|
37 | 'List/append': 'type-method',
|
38 | 'Null': 'type-method',
|
39 | 'OILS_GC_ON_EXIT': 'special-var',
|
40 | 'OILS_GC_STATS': 'special-var',
|
41 | 'OILS_GC_STATS_FD': 'special-var',
|
42 | 'OILS_GC_THRESHOLD': 'special-var',
|
43 | 'OILS_VERSION': 'special-var',
|
44 | 'OLDPWD': 'special-var',
|
45 | 'OPTARG': 'special-var',
|
46 | 'OPTERR': 'special-var',
|
47 | 'OPTIND': 'special-var',
|
48 | 'OSTYPE': 'special-var',
|
49 | 'PATH': 'special-var',
|
50 | 'PIPESTATUS': 'special-var',
|
51 | 'PPID': 'special-var',
|
52 | 'PROMPT_COMMAND': 'plugin',
|
53 | 'PS1': 'plugin',
|
54 | 'PS2': 'plugin',
|
55 | 'PS3': 'plugin',
|
56 | 'PS4': 'plugin',
|
57 | 'PWD': 'special-var',
|
58 | 'RANDOM': 'special-var',
|
59 | 'REPLY': 'special-var',
|
60 | 'RETURN': 'plugin',
|
61 | 'SECONDS': 'special-var',
|
62 | 'SHELLOPTS': 'special-var',
|
63 | 'SHX_indent': 'special-var',
|
64 | 'SHX_pid_str': 'special-var',
|
65 | 'SHX_punct': 'special-var',
|
66 | 'SIGINT': 'plugin',
|
67 | 'SIGQUIT': 'plugin',
|
68 | 'SIGTERM': 'plugin',
|
69 | 'SIGTTIN': 'plugin',
|
70 | 'SIGTTOU': 'plugin',
|
71 | 'SIGWINCH': 'plugin',
|
72 | 'UID': 'special-var',
|
73 | 'YSH_HISTFILE': 'special-var',
|
74 | '_end': 'builtin-func',
|
75 | '_error': 'special-var',
|
76 | '_group': 'builtin-func',
|
77 | '_pipeline_status': 'special-var',
|
78 | '_process_sub_status': 'special-var',
|
79 | '_reply': 'special-var',
|
80 | '_start': 'builtin-func',
|
81 | '_status': 'special-var',
|
82 | '_this_dir': 'special-var',
|
83 | 'abs': 'builtin-func',
|
84 | 'accum': 'type-method',
|
85 | 'alias': 'builtin-cmd',
|
86 | 'all': 'builtin-func',
|
87 | 'ampersand': 'cmd-lang',
|
88 | 'and': 'cmd-lang',
|
89 | 'any': 'builtin-func',
|
90 | 'append': 'index',
|
91 | 'arg': 'builtin-cmd',
|
92 | 'arith-context': 'mini-lang',
|
93 | 'arith-sub': 'word-lang',
|
94 | 'ascii-control-chars': 'front-end',
|
95 | 'ascii-whitespace': 'front-end',
|
96 | 'assign': 'expr-lang',
|
97 | 'atom-literal': 'expr-lang',
|
98 | 'aug-assign': 'expr-lang',
|
99 | 'b-prefix': 'j8',
|
100 | 'bang': 'cmd-lang',
|
101 | 'block-arg': 'cmd-lang',
|
102 | 'block-expr': 'expr-lang',
|
103 | 'bool': 'builtin-func',
|
104 | 'bool-expr': 'mini-lang',
|
105 | 'bool-infix': 'mini-lang',
|
106 | 'bool-other': 'mini-lang',
|
107 | 'bool-path': 'mini-lang',
|
108 | 'bool-str': 'mini-lang',
|
109 | 'boolstatus': 'builtin-cmd',
|
110 | 'braces': 'mini-lang',
|
111 | 'break': 'cmd-lang',
|
112 | 'builtin': 'builtin-cmd',
|
113 | 'bytes': 'builtin-func',
|
114 | 'call': 'ysh-cmd',
|
115 | 'captureStdout': 'type-method',
|
116 | 'case': 'cmd-lang',
|
117 | 'cat-em': 'front-end',
|
118 | 'cd': 'builtin-cmd',
|
119 | 'char-escapes': 'mini-lang',
|
120 | 'class-literal': 'expr-lang',
|
121 | 'cmd/append': 'builtin-cmd',
|
122 | 'cmd/type': 'builtin-cmd',
|
123 | 'colon': 'cmd-lang',
|
124 | 'column-attrs': 'j8',
|
125 | 'column-types': 'j8',
|
126 | 'command': 'builtin-cmd',
|
127 | 'command-sub': 'word-lang',
|
128 | 'comment': 'front-end',
|
129 | 'compadjust': 'builtin-cmd',
|
130 | 'compexport': 'builtin-cmd',
|
131 | 'compgen': 'builtin-cmd',
|
132 | 'complete': 'plugin',
|
133 | 'compopt': 'builtin-cmd',
|
134 | 'concat': 'expr-lang',
|
135 | 'config': 'front-end',
|
136 | 'const': 'ysh-cmd',
|
137 | 'continue': 'cmd-lang',
|
138 | 'ctx': 'builtin-cmd',
|
139 | 'dashglob': 'option',
|
140 | 'dbracket': 'cmd-lang',
|
141 | 'declare': 'osh-assign',
|
142 | 'dict': 'builtin-func',
|
143 | 'dict-literal': 'expr-lang',
|
144 | 'dirs': 'builtin-cmd',
|
145 | 'doc-comment': 'front-end',
|
146 | 'dparen': 'cmd-lang',
|
147 | 'echo': 'builtin-cmd',
|
148 | 'enable': 'builtin-cmd',
|
149 | 'encodeBytes': 'builtin-func',
|
150 | 'encodeRunes': 'builtin-func',
|
151 | 'end': 'type-method',
|
152 | 'endsWith': 'type-method',
|
153 | 'equal': 'ysh-cmd',
|
154 | 'erase': 'type-method',
|
155 | 'err-j8-lines-decode': 'errors',
|
156 | 'err-j8-lines-encode': 'errors',
|
157 | 'err-j8-str-decode': 'errors',
|
158 | 'err-j8-str-encode': 'errors',
|
159 | 'err-json-decode': 'errors',
|
160 | 'err-json-encode': 'errors',
|
161 | 'err-json8-decode': 'errors',
|
162 | 'err-json8-encode': 'errors',
|
163 | 'err-utf8-decode': 'errors',
|
164 | 'err-utf8-encode': 'errors',
|
165 | 'error': 'builtin-cmd',
|
166 | 'eval': 'type-method',
|
167 | 'evalExpr': 'builtin-func',
|
168 | 'evalHay': 'builtin-func',
|
169 | 'eval_unsafe_arith': 'option',
|
170 | 'exec': 'builtin-cmd',
|
171 | 'exit': 'cmd-lang',
|
172 | 'exit-codes': 'front-end',
|
173 | 'export': 'osh-assign',
|
174 | 'expr-literal': 'expr-lang',
|
175 | 'expr-splice': 'word-lang',
|
176 | 'expr-sub': 'word-lang',
|
177 | 'extend': 'type-method',
|
178 | 'extglob': 'mini-lang',
|
179 | 'failed': 'builtin-cmd',
|
180 | 'false': 'cmd-lang',
|
181 | 'fat-arrow': 'expr-lang',
|
182 | 'fg': 'builtin-cmd',
|
183 | 'find': 'type-method',
|
184 | 'flag': 'builtin-cmd',
|
185 | 'float': 'builtin-func',
|
186 | 'float-lit': 'expr-lang',
|
187 | 'fopen': 'builtin-cmd',
|
188 | 'for': 'cmd-lang',
|
189 | 'for-expr-sh': 'cmd-lang',
|
190 | 'fork': 'builtin-cmd',
|
191 | 'forkwait': 'builtin-cmd',
|
192 | 'fromJson': 'builtin-func',
|
193 | 'fromJson8': 'builtin-func',
|
194 | 'func': 'ysh-cmd',
|
195 | 'func-call': 'expr-lang',
|
196 | 'func/type': 'builtin-func',
|
197 | 'get': 'type-method',
|
198 | 'getVar': 'builtin-func',
|
199 | 'getopts': 'builtin-cmd',
|
200 | 'glob': 'type-method',
|
201 | 'glob-pat': 'mini-lang',
|
202 | 'group': 'type-method',
|
203 | 'hash': 'builtin-cmd',
|
204 | 'hay': 'builtin-cmd',
|
205 | 'haynode': 'builtin-cmd',
|
206 | 'help': None,
|
207 | 'here-doc': 'cmd-lang',
|
208 | 'history': 'builtin-cmd',
|
209 | 'histsub': 'mini-lang',
|
210 | 'if': 'cmd-lang',
|
211 | 'inc': 'type-method',
|
212 | 'indexOf': 'type-method',
|
213 | 'insert': 'type-method',
|
214 | 'int': 'builtin-func',
|
215 | 'int-literal': 'expr-lang',
|
216 | 'is-main': 'builtin-cmd',
|
217 | 'j8-escape': 'j8',
|
218 | 'jobs': 'builtin-cmd',
|
219 | 'join': 'builtin-func',
|
220 | 'json': 'builtin-cmd',
|
221 | 'json-escape': 'j8',
|
222 | 'json-string': 'j8',
|
223 | 'json8': 'builtin-cmd',
|
224 | 'json8-comment': 'j8',
|
225 | 'json8-dict': 'j8',
|
226 | 'json8-list': 'j8',
|
227 | 'json8-num': 'j8',
|
228 | 'json8-str': 'j8',
|
229 | 'keys': 'type-method',
|
230 | 'kill': 'builtin-cmd',
|
231 | 'lazy-expr-arg': 'cmd-lang',
|
232 | 'leftMatch': 'type-method',
|
233 | 'len': 'builtin-func',
|
234 | 'line-continuation': 'front-end',
|
235 | 'line-editing': 'front-end',
|
236 | 'list': 'builtin-func',
|
237 | 'list-literal': 'expr-lang',
|
238 | 'local': 'osh-assign',
|
239 | 'lower': 'type-method',
|
240 | 'mapfile': 'builtin-cmd',
|
241 | 'match-ops': 'expr-lang',
|
242 | 'max': 'builtin-func',
|
243 | 'maybe': 'builtin-func',
|
244 | 'min': 'builtin-func',
|
245 | 'module': 'builtin-cmd',
|
246 | 'multiline-command': 'front-end',
|
247 | 'named-class': 'expr-lang',
|
248 | 'no-prefix': 'j8',
|
249 | 'nullglob': 'option',
|
250 | 'oils-usage': None,
|
251 | 'op-format': 'word-lang',
|
252 | 'op-index': 'word-lang',
|
253 | 'op-precedence': 'expr-lang',
|
254 | 'op-replace': 'word-lang',
|
255 | 'op-slice': 'word-lang',
|
256 | 'op-strip': 'word-lang',
|
257 | 'op-test': 'word-lang',
|
258 | 'opts-internal': 'option',
|
259 | 'opts-redefine': 'option',
|
260 | 'or': 'cmd-lang',
|
261 | 'osh-chapters': None,
|
262 | 'osh-string': 'word-lang',
|
263 | 'osh-usage': None,
|
264 | 'parseArgs': 'builtin-cmd',
|
265 | 'parseHay': 'builtin-func',
|
266 | 'parse_ignored': 'option',
|
267 | 'parse_triple_quote': 'option',
|
268 | 'parse_ysh_string': 'option',
|
269 | 'parser': 'builtin-cmd',
|
270 | 'pipe': 'cmd-lang',
|
271 | 'pop': 'type-method',
|
272 | 'popd': 'builtin-cmd',
|
273 | 'pp': 'builtin-cmd',
|
274 | 'printf': 'builtin-cmd',
|
275 | 'proc': 'ysh-cmd',
|
276 | 'proc-sub': 'word-lang',
|
277 | 'promptVal': 'type-method',
|
278 | 'push-registers': 'builtin-cmd',
|
279 | 'pushd': 'builtin-cmd',
|
280 | 'pwd': 'builtin-cmd',
|
281 | 'range': 'expr-lang',
|
282 | 're-capture': 'expr-lang',
|
283 | 're-compound': 'expr-lang',
|
284 | 're-flags': 'expr-lang',
|
285 | 're-literal': 'expr-lang',
|
286 | 're-multiline': 'expr-lang',
|
287 | 're-primitive': 'expr-lang',
|
288 | 're-repeat': 'expr-lang',
|
289 | 're-splice': 'expr-lang',
|
290 | 'read': 'builtin-cmd',
|
291 | 'readarray': 'builtin-cmd',
|
292 | 'readonly': 'osh-assign',
|
293 | 'redir-desc': 'cmd-lang',
|
294 | 'redir-file': 'cmd-lang',
|
295 | 'regex': 'mini-lang',
|
296 | 'remove': 'type-method',
|
297 | 'renderPrompt': 'plugin',
|
298 | 'repeat': 'builtin-func',
|
299 | 'replace': 'type-method',
|
300 | 'rest': 'builtin-cmd',
|
301 | 'return': 'cmd-lang',
|
302 | 'reverse': 'type-method',
|
303 | 'round': 'builtin-func',
|
304 | 'runes': 'builtin-func',
|
305 | 'runproc': 'builtin-cmd',
|
306 | 'search': 'type-method',
|
307 | 'semicolon': 'cmd-lang',
|
308 | 'set': 'builtin-cmd',
|
309 | 'setValue': 'type-method',
|
310 | 'setglobal': 'ysh-cmd',
|
311 | 'setvar': 'ysh-cmd',
|
312 | 'sh-append': 'osh-assign',
|
313 | 'sh-arith': 'mini-lang',
|
314 | 'sh-array': 'osh-assign',
|
315 | 'sh-assign': 'osh-assign',
|
316 | 'sh-assoc': 'osh-assign',
|
317 | 'sh-bitwise': 'mini-lang',
|
318 | 'sh-block': 'cmd-lang',
|
319 | 'sh-func': 'cmd-lang',
|
320 | 'sh-logical': 'mini-lang',
|
321 | 'sh-numbers': 'mini-lang',
|
322 | 'shSplit': 'builtin-func',
|
323 | 'sha1dc': 'builtin-func',
|
324 | 'sha256': 'builtin-func',
|
325 | 'shift': 'osh-assign',
|
326 | 'shopt': 'builtin-cmd',
|
327 | 'shvar': 'builtin-cmd',
|
328 | 'shvarGet': 'builtin-func',
|
329 | 'sigpipe_status_ok': 'option',
|
330 | 'simple-command': 'cmd-lang',
|
331 | 'source': 'builtin-cmd',
|
332 | 'split': 'builtin-func',
|
333 | 'start': 'type-method',
|
334 | 'startsWith': 'type-method',
|
335 | 'startup': 'front-end',
|
336 | 'str': 'builtin-func',
|
337 | 'str-template': 'expr-lang',
|
338 | 'strcmp': 'builtin-func',
|
339 | 'strftime': 'type-method',
|
340 | 'strict:all': 'option',
|
341 | 'strict_control_flow': 'option',
|
342 | 'strict_nameref': 'option',
|
343 | 'strict_tilde': 'option',
|
344 | 'subshell': 'cmd-lang',
|
345 | 'sum': 'builtin-func',
|
346 | 'surrogate-pair': 'j8',
|
347 | 'tagged-str': 'word-lang',
|
348 | 'test': 'builtin-cmd',
|
349 | 'thin-arrow': 'expr-lang',
|
350 | 'tilde-sub': 'word-lang',
|
351 | 'time': 'type-method',
|
352 | 'times': 'builtin-cmd',
|
353 | 'toJson': 'builtin-func',
|
354 | 'toJson8': 'builtin-func',
|
355 | 'trap': 'builtin-cmd',
|
356 | 'trim': 'type-method',
|
357 | 'trimEnd': 'type-method',
|
358 | 'trimStart': 'type-method',
|
359 | 'triple-quoted': 'word-lang',
|
360 | 'true': 'cmd-lang',
|
361 | 'try': 'builtin-cmd',
|
362 | 'type': 'index',
|
363 | 'typed-arg': 'cmd-lang',
|
364 | 'typeset': 'osh-assign',
|
365 | 'u-prefix': 'j8',
|
366 | 'ulimit': 'builtin-cmd',
|
367 | 'umask': 'builtin-cmd',
|
368 | 'unalias': 'builtin-cmd',
|
369 | 'unquoted-line': 'j8',
|
370 | 'unset': 'osh-assign',
|
371 | 'until': 'cmd-lang',
|
372 | 'upper': 'type-method',
|
373 | 'use': 'builtin-cmd',
|
374 | 'values': 'type-method',
|
375 | 'var': 'ysh-cmd',
|
376 | 'var-splice': 'word-lang',
|
377 | 'var-sub': 'word-lang',
|
378 | 'wait': 'builtin-cmd',
|
379 | 'while': 'cmd-lang',
|
380 | 'write': 'builtin-cmd',
|
381 | 'ysh-arith': 'expr-lang',
|
382 | 'ysh-attr': 'expr-lang',
|
383 | 'ysh-bitwise': 'expr-lang',
|
384 | 'ysh-case': 'cmd-lang',
|
385 | 'ysh-cd': 'builtin-cmd',
|
386 | 'ysh-chapters': None,
|
387 | 'ysh-compare': 'expr-lang',
|
388 | 'ysh-echo': 'builtin-cmd',
|
389 | 'ysh-equals': 'expr-lang',
|
390 | 'ysh-for': 'cmd-lang',
|
391 | 'ysh-format': 'word-lang',
|
392 | 'ysh-if': 'cmd-lang',
|
393 | 'ysh-in': 'expr-lang',
|
394 | 'ysh-index': 'expr-lang',
|
395 | 'ysh-logical': 'expr-lang',
|
396 | 'ysh-printf': 'word-lang',
|
397 | 'ysh-read': 'builtin-cmd',
|
398 | 'ysh-return': 'ysh-cmd',
|
399 | 'ysh-shopt': 'builtin-cmd',
|
400 | 'ysh-slice': 'expr-lang',
|
401 | 'ysh-string': 'word-lang',
|
402 | 'ysh-ternary': 'expr-lang',
|
403 | 'ysh-usage': None,
|
404 | 'ysh-while': 'cmd-lang',
|
405 | 'ysh:all': 'option',
|
406 | 'ysh:upgrade': 'option'}
|
407 |
|
408 |
|
409 | from typing import Dict
|
410 |
|
411 | def TopicMetadata():
|
412 | # type: () -> Dict[str, str]
|
413 | return TOPICS
|