MagicPython icon indicating copy to clipboard operation
MagicPython copied to clipboard

ST4 loading error: Error in regex

Open Levitanus opened this issue 4 years ago • 2 comments
trafficstars

  • 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((

Levitanus avatar Oct 31 '21 18:10 Levitanus

@Levitanus check my pull request for the fix.

Please post an issue to the upstream, I believe this is a bug in SublimeText 4 since I've seen this error in other packages as well.

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

@ni-max , Thank You, I'll try to check tomorrow, too much work outside the PC...

Levitanus avatar Nov 24 '21 03:11 Levitanus