Skip to content

feature: Support C23 new primitive types like _Float32 #290

@HKalbasi

Description

@HKalbasi

Did you check the tree-sitter docs?

Is your feature request related to a problem? Please describe.

There are some new keywords added in C23 like _Float32, _Float32x, ... which are not supported in this parser.

Describe the solution you'd like

Add them to the list of primitive types like int and long.

Describe alternatives you've considered

Not supporting them?

Additional context

Here is the full list: https://www.iso-9899.info/n3047.html#H.5.1

I'm not sure about _Float32_t. It is a type alias and not a keyword, but this parser adds things like size_t which are also type aliases, so we may want to be consistent with that.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions