-
Notifications
You must be signed in to change notification settings - Fork 728
Add lexer for Soong (Android.bp) config files #2659
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
Conversation
Just came back from travel, looking into this now. |
Thanks @Anteru. I fixed up the |
Thanks for the review, @Anteru! Your comment about whitespace helped me realize there was a deficiency in my previous version (multi-line lists weren't handled correctly). I've corrected this and added a test. Please take another look! |
Thanks @jeanas. All comments have been resolved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks!
A lexer for Soong (Android.bp) was added to Pygments in version 2.18.0: * pygments/pygments#2659 * https://github.com/pygments/pygments/releases/tag/2.18.0 Pigweed upgraded to Pygments 2.18.0 in commit 9a52966 Change-Id: Id7e239bb80db20e1707026be6f931734eaa70cee Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/243880 Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com> Reviewed-by: Carlos Chinchilla <cachinchilla@google.com> Commit-Queue: Jonathon Reinhart <jrreinhart@google.com> Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
This adds a lexer for
Android.bp
files which are used by the Soong Android build system.https://source.android.com/docs/setup/build
Here is an example of a full
Android.bp
file:platform/frameworks/base/Android.bp
.