Skip to content

[meta] Choose and alter wildcard scope to reflect replacement length #4488

@michaelblyons

Description

@michaelblyons

What do you folks think about changing the subscopes of constant.other.wildcard from the character used to the semantic meaning? This would let color schemes distinguish on what a wildcard does rather than what character it uses.

  • Remove .asterisk, .questionmark, .underscore, .percent, etc.
  • Replace with something like this (feel free to suggest better words)…
    • .character to indicate "This represents one char"
    • .string to indicate "This represents a variable-length string"

Possible downsides

  • Is it important to distinguish wildcards that mean zero-or-more characters versus ones that mean one-or-more characters?
  • Wildcards (if any) that mean a particular length of characters above one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions