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

Allow tabs in recipes - #17

Merged
kevinsawicki merged 4 commits into
masterfrom
wl-recipe-tabs
Aug 4, 2015
Merged

kevinsawicki merged 4 commits into
masterfrom
wl-recipe-tabs

Conversation

@winstliu

@winstliu winstliu commented Aug 2, 2015

Copy link
Copy Markdown
Contributor

Now, I'm not familiar with Make at all, having never used it. So I did some research and it looks like only tabs are allowed (at least in most variations). I'm not really sure why the recipe regex has a negative lookahead looking specifically for tabs, but that seems to go against Make's grammar rules, so I removed it.

Fixes #10

@kevinsawicki

Copy link
Copy Markdown
Contributor

@50Wliu while reviewing this, I was still able to reproduce the issue in #10 on this branch.

After further investigation, I noticed this grammar has a while pattern which is not supported by atom/first-mate and I think was causing the original issue.

Removing that pattern seemed to address the issue, mind taking a look and letting me know what you think?

@winstliu

winstliu commented Aug 4, 2015

Copy link
Copy Markdown
Contributor Author

Yeah, I was wondering about that. Any idea why that would fix the issue even if it's not supported by first-mate?

Taking a look now...

@kevinsawicki

Copy link
Copy Markdown
Contributor

Any idea why that would fix the issue even if it's not supported by first-mate?

Yeah, that pattern was missing an end pattern since it had a while pattern causing it to continue matching all lines under it.

We could experiment with just renaming while to end and see what happens as well.

kevinsawicki added a commit that referenced this pull request Aug 4, 2015
@kevinsawicki
kevinsawicki merged commit e08104a into master Aug 4, 2015
@kevinsawicki

Copy link
Copy Markdown
Contributor

🚢

@kevinsawicki
kevinsawicki deleted the wl-recipe-tabs branch August 4, 2015 00:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants