Skip to content

[ShellScript] Separate glob and regexp scopes#4571

Open
deathaxe wants to merge 3 commits into
sublimehq:masterfrom
deathaxe:pr/shellscript/pattern-matching
Open

[ShellScript] Separate glob and regexp scopes#4571
deathaxe wants to merge 3 commits into
sublimehq:masterfrom
deathaxe:pr/shellscript/pattern-matching

Conversation

@deathaxe

@deathaxe deathaxe commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

This PR...

  1. aligns glob pattern matching related scopes with PR [Git Formats] Add support for full glob patterns #4569

    • simplify punctuation of character classes (collate and equivalence).
    • scope character classes meta.character-class instead of meta.set
      (to be applied to other RegExp syntaxes in future PRs)
  2. fully separates glob and (e)regexp patterns, with regards to contexts and scope names.

    Glob patterns are finalized with .glob.shell

    Regular Expressions are finalized with .regexp.shell

deathaxe added 3 commits June 14, 2026 21:29
This commit adjusts character class related scopes.

Character classes were scoped `meta.set` with the name `charset` in mind,
which is however something totally different.

Note: This commit does not rename context names due to compatibility concerns
with 3rd-party packages.
Copy character class contexts from glob patterns to eregexp in preparation
of separating scopes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant