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

language regex leaks outside code block #171

Open
luxedo opened this issue Oct 17, 2016 · 6 comments
Open

language regex leaks outside code block #171

luxedo opened this issue Oct 17, 2016 · 6 comments

Comments

@luxedo
Copy link

luxedo commented Oct 17, 2016

I've found that in java, javascript and css (probably there's more), if a block of a statement is not closed, the regex will leak and stop language-gfm from capturing the end of a code block.

leak

@dead-claudia
Copy link

I have exactly the same problem, but with question marks, which makes documenting optional parameters without a default a pain because of the lack of syntax highlighting for the Markdown itself.

screenshot from 2016-10-24 23-47-59

@dead-claudia
Copy link

It doesn't appear language-specific, though. This is with a JavaScript file:

screenshot from 2016-10-24 23-52-48

@sriharshachilakapati
Copy link

This also happens with yaml code blocks, where even blocks are not created at all, even in the open space.

issue

It should stop after the small code block, with only development: true in it. It even appears on backticks as well.

@tomjoht
Copy link

tomjoht commented Dec 28, 2016

I reported the issue with YAML code blocks here and also included some screenshots.

@dead-claudia
Copy link

Filed atom/atom#13515. Not a language-gfm issue, as I noted previously.

@dead-claudia
Copy link

Take 2: atom/first-mate#83.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants