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