MagicPython icon indicating copy to clipboard operation
MagicPython copied to clipboard

Fix / Workaround for: Error in regex: target of repeat operator is invalid in regex

Open ni-max opened this issue 4 years ago • 4 comments

This is a workaround for: #242

Feel free to reject this as I believe this is an upstream bug. But just for the convenience, I'll post this PR as a workaround.

SublimeText 4 (as of build 4121) evaluates this valid regex: \n? to this invalid one: $? hence causing the following error:

error: Error loading syntax file "Packages/<Path_To>.tmLanguage": Error in regex: target of repeat operator is invalid in regex

ni-max avatar Nov 22 '21 20:11 ni-max

Confirm it works in ST4

Levitanus avatar Nov 24 '21 16:11 Levitanus

I've also made a custom colorScheme for MagicPython inspired by both: Solorized and Monokai.

But cannot assume the best way to distribute it: PackageControl is too heavy and long to publish. Just GitHub repo — nobody finds it)

изображение

изображение

Levitanus avatar Nov 24 '21 23:11 Levitanus

Is this still the case or can we close this PR?

1st1 avatar Oct 20 '22 19:10 1st1

I think, that still use this branch. But I'm not sure, too long I have not looked into my ST config.

Levitanus avatar Oct 20 '22 19:10 Levitanus