Code Monkey home page Code Monkey logo

Comments (10)

1st1 avatar 1st1 commented on May 22, 2024

Thanks for reporting.

Are you using the latest version of MagicPython -- v0.4.29?
Also, what color theme is it?
Is this Sublime Text or Atom?

from magicpython.

averrin avatar averrin commented on May 22, 2024

Yeah, 0.4.29
Atom, Base16 Tomorrow Dark

from magicpython.

1st1 avatar 1st1 commented on May 22, 2024

Can't reproduce :(

Could you please send me this snippet of code, preferably with +10 lines from above/below. Also, what's the package name for the theme in Atom?

And lastly, could you please double check that it's MagicPython that highlights this file? (In the bottom-right corner of the editor it should say "MagicPython")

from magicpython.

averrin avatar averrin commented on May 22, 2024
t, delta = getTime(ret_delta=True)
if delta.startswith('-'):
    delta = 'Go home NOW!'
else:
    delta += ' left'
print("  🏠 Home time: %s (%s)" % (t, delta))
t, delta = getTime(True, ret_delta=True)
if delta.startswith('-'):
    delta = 'Go home NOW!'
else:
    delta += ' left'
print("  🕐 Ideal home time: %s (%s)" % (t, delta))
print("  🕐 Current average: %02d:%02d" % getAverage())

try:
    route = fetchRoute()
    while not route.strip():
        route = fetchRoute()
    route = json.loads(route)
    duration = route['data']['features'][0]['properties']['RouteMetaData']['Duration']['text']
    duration = duration.encode('utf8')
    print('  🚗 Route to home: %s' % duration)
    print('')
except:
    pass

https://atom.io/themes/base16-tomorrow-dark-theme

Yes, MagicPython. 100%

from magicpython.

averrin avatar averrin commented on May 22, 2024

Reproduces with only one line and with Atom Dark theme

from magicpython.

1st1 avatar 1st1 commented on May 22, 2024

Now I can reproduce it, thanks!

from magicpython.

1st1 avatar 1st1 commented on May 22, 2024

@averrin This seems to be a bug in the oniguruma regex engine that Atom uses. It doesn't support multibyte unicode characters correctly. Sublime Text, for instance, works just fine.

At this point I doubt it's in our power to fix this, we should actually file a bug to Atom. BTW, the standard language-python syntax also breaks in exactly the same way.

from magicpython.

averrin avatar averrin commented on May 22, 2024

Oh, u r right, standard highlighter breaks too.

from magicpython.

1st1 avatar 1st1 commented on May 22, 2024

I'll close this issue, since the problem is not on our end :(

from magicpython.

1st1 avatar 1st1 commented on May 22, 2024

Looks like this has been fixed in Atom 1.1!

from magicpython.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.