-
Notifications
You must be signed in to change notification settings - Fork 1
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
Multi-line variable definitions are broken #1
Comments
Hi, |
If I understand the docs correctly, variables need to be terminated by a comma anyway, so I could just match for a trailing comma, i.e. Am I missing something? |
I have created a branch, maybe you could test it. |
Variables needn't end with a comma, see e.g. this file/lines: The regex I had above seems to cope with this file pretty well. The added support for += was a nice bonus in your branch though, there's a couple of those here: https://cs.android.com/android/platform/superproject/+/master:frameworks/base/api/Android.bp;l=92-95;drc=2a8c2c360136ea5fe08a23172af0facd6ee0baa0 |
The simple solution of
Both |
Blueprint supports multi-line variable definitions, e.g.
The end capture for variables is currently too simple (only matching linebreaks), but the following seems to improve things by disallowing a variable to end with
+
or=
.:"end": "[^+=][ ]*\\n",
The text was updated successfully, but these errors were encountered: