Re:MagicStack: Python syntax highlighter for Sublime Text an...
by dmishe on Monday October 19, 2015 @07:25PM
(#10416477)
What are the advantages over built-in syntax highlight in sublime text?
[ Parent
| on HN ]
Re:MagicStack: Python syntax highlighter for Sublime Text an...
by 1st1 on Monday October 19, 2015 @07:30PM
(#10416496)
To 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