Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Results in leaking scope when embedded into language-haskell. #22

Open
@lierdakil

Description

@lierdakil

Prerequisites

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:

image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions