Skip to content

Conversation

@tendrils
Copy link

While it's not a widely used feature of Make, it is valid to nest define/endef blocks within one another arbitrarily in a makefile (at least in the case of GNU Make). This syntax change fixes highlighting of such nested blocks.

@fadeevab
Copy link
Owner

@tendrils, Have you tested the patch? I should check one on my side as well. Usually, I convert xml to json and put to vscode.

@tendrils
Copy link
Author

I've verified that this change to the grammar works in vscode, but not anywhere else. This patch was made by backporting that change from json to xml.

Existing version:
vscode-make
Patched version:
vscode-make-fixed

@fadeevab
Copy link
Owner

Yeah, it's enough. Actually, looks cool. Give me a few days, I will double check on tests.

@tendrils
Copy link
Author

Happy to help. I've submitted this patch to upstream as well, not sure how likely they are to respond though, lol

@fadeevab fadeevab merged commit 74f86ae into fadeevab:master May 25, 2019
@fadeevab
Copy link
Owner

@tendrils Merged, thanks. The updated highlighting will have been pulled to VS Code during periodical grammar update there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants