Skip to content

Buildifier does not recognize byte string literals #1394

@rcorre

Description

@rcorre
$ echo 'b"abc"' | buildifier
<stdin>:1:7: syntax error near "abc"
<stdin> # reformat

Byte-string literals are defined in the spec:

Literals: literals are tokens that denote specific values. Starlark has integer, floating-point, string, and bytes literals.
...
b"hello" b'hello' # bytes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions