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