6 ms·
I'm one of the authors, ama.
by 1st1 11y ago
I'm one of the authors, ama.
- 0942v8653 11y agoDoes this allow highlighting function names in function calls? PythonImproved[0] does this (see lines 9 and 23 of [1]). [0]: https://github.com/MattDMo/PythonImproved https://github.com/MattDMo/PythonImproved [1]: https://packagecontrol.io/readmes/img/048b2068c7a455f3796334fb70127655a1f5f9cc.png https://packagecontrol.io/readmes/img/048b2068c7a455f3796334...
- 1st1 11y agoYeah, should be fairly easy to add. Please submit an issue!
- knite 11y agoCould you compare/contrast MagicStack with PythonImproved generally? Would love to know if MS is strictly better.
- 1st1 11y agoTry to add this snippet anywhere in your code: r'(' Besides broken regexps, PythonImproved still doesn't highlight async/await, highlights raw docstrings as regexps, incorrectly handles implicit line continuations in function parameter annotations, etc. Edit: here's an issue that documents some differences [1] [1] https://github.com/MagicStack/MagicPython/issues/3 https://github.com/MagicStack/MagicPython/issues/3
- knite 11y agoWhy is the issue closed and locked?
- 1st1 11y agoFixed in v0.4.21!
- dmishe 11y agoWhat are the advantages over built-in syntax highlight in sublime text?
- 1st1 11y agoTo name a few, we highlight correctly async/await, function annotations, very complex regexps, all kinds of unicode|byte|raw string literals (and new/old style formatting), docstrings, reserved words in improper contexts etc. Most importantly, MagicPython doesn't break where builtin sublime syntax fails, try this snippet for instance: def foo() -> int: return a
- dmishe 11y agoNoted, thanks
- jolux 11y agoA bit off topic, but what theme and color scheme are you using in your Sublime Text screenshot?
- 1st1 11y agoHere it is: [1] For now it has to be installed manually. I'll submit it to Package Control and create an Atom version soon. [1] https://github.com/MagicStack/Chromodynamics https://github.com/MagicStack/Chromodynamics