Skip to content

Allow identifiers to start with _ #2298

@mr-ariel

Description

@mr-ariel

Identifiers are defined as /[a-zA-Z][0-9a-zA-Z_]*/

Which means, _my_var, is not valid, but my_var is.

Furthermore, a lot of languages, including JS, are ok with $ as well.

Any reason for constraining this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    wgslWebGPU Shading Language Issues

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions