Comments (10)
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.
Yeah, 0.4.29
Atom, Base16 Tomorrow Dark
from magicpython.
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.
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.
Reproduces with only one line and with Atom Dark theme
from magicpython.
Now I can reproduce it, thanks!
from magicpython.
@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.
Oh, u r right, standard highlighter breaks too.
from magicpython.
I'll close this issue, since the problem is not on our end :(
from magicpython.
Looks like this has been fixed in Atom 1.1!
from magicpython.
Related Issues (20)
- Backend MacOSX is interactive backend. Turning interactive mode on.
- ST4 loading error: Error in regex HOT 2
- Incorrect tokenization of querystring
- python string syntax highlight errors HOT 2
- Python function annotation is not working
- Support for Python PEP 677 in Python TextMate grammar HOT 1
- No ability to configure soft vs hard tabs when using tab type auto HOT 7
- Intellij support
- Highlight all PEP-0350 defined codetags
- Interpreter Stops Working
- Getting invalid.illegal.name.python on valid python code from textmate
- Syntax highlighting issue when @ appears as first character after line continuation when indexing is present
- Syntax Highlighting regex+format strings (rf)
- `#` in read-only string highlights as a comment
- Boolean True/False independent highlight support
- Wrong highlight for raw string HOT 4
- Tag and push the python 3.8 and 3.10 syntax additions to Pulsar
- Decorator Syntax Errors
- Support for PEP 695 (Type parameters / generics)
- Python modulo operator parsed in a string
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magicpython.