[Regular Expressions] Single opening bracket in charsets is scoped punctuation

Open
#417 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Domain
tooling

Research direction

Start by locating the charset and nestedcharset rules in the Sublime Text syntax definition that scopes regex punctuation. Compare the [[], [[:alpha:]], and [[A-Z]-[0-9]] examples, then verify that a lone opening bracket is not scoped while valid nested charsets still are.

Written by the indexing model from the issue text.

Description

What happened?

A single opening [ may appear unescaped in charsets and thus should not be scoped punctuation.definition.set.

[[]

It becomes punctuation not before valid nestedcharset is present.

[[:alpha:]]

or

[[A-Z]-[0-9]]
Dominant language
Python
Stars
455
Forks
86
Avg merge
7d 10h
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SublimeText/PackageDev

All issues in SublimeText/PackageDev

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.