MagicStack / MagicStack/MagicPython
ST4 loading error: Error in regex
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.4k
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Description
* **Editor name and version**:
* SublimeText4: 4121
* **Platform**:
* Ubuntu 20.10
* **Color scheme**:
* any: monokau, matherialUi, MaterialUiImproved
* **MagicPython version**:
* 1.1.1
* **A sreenshot**:
* **5-10 lines of surrounding code**:
The error:
```
error: Error loading syntax file "Packages/MagicPython/grammars/MagicPython.tmLanguage": Error in regex: target of repeat operator is invalid in regex (?x)
(.+?)
(
(?# .* and .*? in multi-line match need special handling of
newlines otherwise SublimeText and Atom will match slightly
differently.
The guard
```
Since the regex is very common in the tmlanguage I'm confused in ways to solve this...
Syntax is not highlighted((
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.
Research direction
Start with grammars/MagicPython.tmLanguage and reproduce the loading error in Sublime Text 4 on the reported environment. Trace the invalid regex construct shown in the error and confirm that the grammar loads and Python syntax highlighting works afterward.
Written by the indexing model from the issue text.
Assessment
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100