Skip to content

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 pigweed-project/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 🤖 <[email protected]>
Reviewed-by: Carlos Chinchilla <[email protected]>
Commit-Queue: Jonathon Reinhart <[email protected]>
Presubmit-Verified: CQ Bot Account <[email protected]>
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