Skip to content

Add bytestring support to DevicetreeLexer and update example DTS file#3022

Merged
birkenfeld merged 1 commit intopygments:masterfrom
kartben:dts_linter_bytestring
Feb 20, 2026
Merged

Add bytestring support to DevicetreeLexer and update example DTS file#3022
birkenfeld merged 1 commit intopygments:masterfrom
kartben:dts_linter_bytestring

Conversation

@kartben
Copy link
Copy Markdown
Contributor

@kartben kartben commented Jan 22, 2026

Add support for bytestring which, as per Devicetree Specification:

  • A bytestring is enclosed in square brackets [ ] with each byte represented by two hexadecimal digits. Spaces between each byte are optional. Example:

     local-mac-address = [00 00 12 34 56 78];
    

    or equivalently:

     local-mac-address = [000012345678];
    

Add support for bytestring which, as per Devicetree Specification:

-  A bytestring is enclosed in square brackets [ ] with each byte
   represented by two hexadecimal digits. Spaces between each byte are
   optional. Example:

        local-mac-address = [00 00 12 34 56 78];

or equivalently:

        local-mac-address = [000012345678];

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
@kartben kartben marked this pull request as ready for review January 22, 2026 21:25
@birkenfeld
Copy link
Copy Markdown
Member

LGTM. Thanks!

@birkenfeld birkenfeld merged commit 38d5d72 into pygments:master Feb 20, 2026
15 checks passed
@Anteru Anteru added the A-lexing area: changes to individual lexers label Mar 26, 2026
@Anteru Anteru added this to the 2.20.0 milestone Mar 26, 2026
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