Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting bugged using here doc #23

Closed
gertjanmaas opened this issue Apr 10, 2017 · 1 comment
Closed

Syntax highlighting bugged using here doc #23

gertjanmaas opened this issue Apr 10, 2017 · 1 comment
Labels

Comments

@gertjanmaas
Copy link

When using here doc syntax and the end of the here doc has whitespace before it, the syntax highlighting is wrong.

Whitespaces before EOF:
screen shot 2017-04-10 at 08 20 40

No whitespace before EOF:
screen shot 2017-04-10 at 08 20 52

@alexlouden
Copy link
Collaborator

Hey @gertjanmaas thanks for reporting this! I think it should be a pretty quick fix - it looks like the end regex is ^\1$ and just needs to be ^\s*\1$ to handle preceding whitespace. I'll make the change when I can, hopefully one evening this week or on the weekend.

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

No branches or pull requests

2 participants