pygments.lexers._julia_builtins ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Julia builtins. :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details.
Constant | BUILTIN |
#!/usr/bin/env julia |
Constant | DOTTED |
#!/usr/bin/env julia |
Constant | KEYWORD |
#!/usr/bin/env julia |
Constant | LITERAL |
Undocumented |
Constant | OPERATORS |
Undocumented |
#!/usr/bin/env julia import REPL.REPLCompletions res = String["true", "false"] for compl in filter!(x -> isa(x, REPLCompletions.ModuleCompletion) && (x.parent === Base || x.parent === Core), REPLCompletions.completions("", 0)[1]) try v = eval(Symbol(compl.mod)) if !(v isa Function || v isa Type || v isa TypeVar || v isa Module || v isa Colon) push!(res, compl.mod) end catch e end end sort!(unique!(res)) foreach(x -> println("'", x, "',"), res)
Value |
|
#!/usr/bin/env julia import REPL.REPLCompletions res = String["in", "isa", "where"] for kw in collect(x.keyword for x in REPLCompletions.complete_keyword("")) if !(contains(kw, " ") || kw == "struct") push!(res, kw) end end sort!(unique!(setdiff!(res, ["true", "false"]))) foreach(x -> println("'", x, "',"), res)
Value |
|
#!/usr/bin/env julia import REPL.REPLCompletions res = String[] for compl in filter!(x -> isa(x, REPLCompletions.ModuleCompletion) && (x.parent === Base || x.parent === Core), REPLCompletions.completions("", 0)[1]) try v = eval(Symbol(compl.mod)) if (v isa Type || v isa TypeVar) && (compl.mod != "=>") push!(res, compl.mod) end catch e end end sort!(unique!(res)) foreach(x -> println("'", x, "',"), res)
Value |
|