sublime-syntax single quote escapes followed by quantifier chars inside sets
@FichteFoll is already working on this.
Since Sep 9, 2024.
Assessment
This issue has not been assessed yet.
Description
In a sublime-syntax file, if the regex is single quoted, and contains a set, and that set contains an escaped single quote, if a character that is normally a valid quantifier immediately follows it, that character is scoped as a quantifier when it shouldn't be - because it is inside a set.
Example: add a star after the ' here: https://github.com/sublimehq/Packages/blob/7ef80d531b752baee46f792b6bc6b26206e56012/Rust/Rust.sublime-syntax#L383
to get:
- match: '(?=>|[^ \t\n\$=<_+''*(),&:\[\][:alnum:]])'
and you will see the * is scoped as keyword.operator.quantifier.regexp when it shouldn't be.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SublimeText/PackageDev
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
SublimeText/PackageDev#417 ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
SublimeText/PackageDev#393 · 1 comment ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
SublimeText/PackageDev#383 ·
-
enhancement
SublimeText/PackageDev#382 · 1 comment · 1 assignee ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
SublimeText/PackageDev#379 ·
All issues in SublimeText/PackageDev
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100