Closed peterjc closed 8 years ago
Hmm, looks like Atom broke this in an upgrade at some point. I can't see this in the language definitions for reStructuredText at all, which makes sense: I wonder if this is internal Atom highlighting?
I was puzzled too when I looked at the RST code - so the URL pattern is defined in Atom itself then?
I think so: it would explain why this is so closely tied to Atom version.
You're right - I can reproduce this in the base install of Atom 1.2.4 using (for example) Github Markup. I therefore think this is a problem in the bundled language-hyperlink
package, see https://github.com/atom/language-hyperlink/issues/7
Thanks @peterjc!
e.g. Opening this file https://github.com/peterjc/galaxy_blast/blob/2c44d9e2346b18ebb0046121dbb44e4189a6d6ff/README.rst in Atom with default settings the URLs are in purple, however, there is a problem when there is an underscore in the URL, e.g.
Here only
http://toolshed.g2.bx.psu.edu/view/devteam/ncbi
is purple, with_blast_plus/
in normal text color. Likewise with the other URLs with an underscore (not just in bullet lists, but also in plain text paragraphs).Update: Tested with Atom 1.2.4 with language-restructuredtext v0.10.0 under Mac OS X 10.10.5