Results in leaking scope when embedded into language-haskell. #22
Description
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
Language-hyperlink breaks syntax highlighting pretty much completely when injected into some grammars, particularly language-haskell (hi, I'm the maintainer)
Steps to Reproduce
Here's a picture with language-haskell and a url in quasiquotes:
The reason for the observed behavior is |
is stolen by language-hyperlink
, which is a part of |]
token that ends the quasiquote. Since quasiquotes are multiline, the rest of the document is then parsed as quasiquote.
Versions
Atom : 1.25.1
Electron: 1.7.11
Chrome : 58.0.3029.110
Node : 7.9.0
apm 1.19.0
npm 3.10.10
node 6.9.5 x64
atom 1.25.1
python 3.5.4
git 2.15.1
OS is irrelevant.
Additional Information
Fix suggestion: don't allow trailing |
to be a part of a URI.
I will try to push out a quick fix on my side, but this can in some cases be a painful issue to deal with.