Skip to content

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

Merged
merged 1 commit into from
Apr 4, 2024
Merged

Add lexer for Soong (Android.bp) config files #2659

merged 1 commit into from
Apr 4, 2024

Conversation

JonathonReinhart
Copy link
Contributor

@JonathonReinhart JonathonReinhart commented Mar 7, 2024

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.

@JonathonReinhart
Copy link
Contributor Author

Hi @Anteru @jeanas, friendly ping! Is there anything I can do to advance this?

@Anteru
Copy link
Collaborator

Anteru commented Mar 24, 2024

Just came back from travel, looking into this now.

@Anteru Anteru added the A-lexing area: changes to individual lexers label Mar 24, 2024
@Anteru Anteru added this to the 2.18.0 milestone Mar 24, 2024
@JonathonReinhart
Copy link
Contributor Author

Thanks @Anteru. I fixed up the check and regexlint errors.

@JonathonReinhart
Copy link
Contributor Author

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!

@JonathonReinhart
Copy link
Contributor Author

Thanks @jeanas. All comments have been resolved.

Copy link
Contributor

@jeanas jeanas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks!

@jeanas jeanas merged commit 3fb3ff6 into pygments:master Apr 4, 2024
@JonathonReinhart JonathonReinhart deleted the jrr-add-soong branch April 8, 2024 00:16
copybara-service bot pushed a commit to google/pigweed that referenced this pull request Oct 23, 2024
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lexing area: changes to individual lexers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants