Port of https://github.com/atom/up-syntax for Atom