Skip to content

add help builtins for special characters #33666

@simonbyrne

Description

@simonbyrne

Help currently had a list of keywords that are handled specially:

const builtins = ["abstract type", "baremodule", "begin", "break",
"catch", "ccall", "const", "continue", "do", "else",
"elseif", "end", "export", "finally", "for", "function",
"global", "if", "import", "let",
"local", "macro", "module", "mutable struct", "primitive type",
"quote", "return", "struct", "try", "using", "while"]

(from #12438).

It would be good to handle characters which have special meaning:

  • $ for interpolation
  • @ for macro invocation
  • '' for character literals
  • " for string literals
  • [ for array expressions and comprehensions
  • ( for tuples
  • . for broadcasting
  • ``` for commands
  • ; other uses (as mentioned in punctuation.md)

cc: @charleskawczynski

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsThis change adds or pertains to documentationgood first issueIndicates a good issue for first-time contributors to Juliahelp wantedIndicates that a maintainer wants help on an issue or pull request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions