Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new types for ziglang #2861

Merged
merged 1 commit into from
Jul 11, 2023
Merged

Add new types for ziglang #2861

merged 1 commit into from
Jul 11, 2023

Conversation

rilysh
Copy link
Contributor

@rilysh rilysh commented Jul 10, 2023

Hello,

This PR adds missing types that Zig added later on. These are addrspace, anyopaque, opaque, i(8, 16, 32, 64, 128), u(8, 16, 32, 64, 128), and f80.

I've also removed \\b((i|u)[0-9]+)\\b regex (which was used to detect any number after i or u, e.g. u1024) as Zig already predefines integer, unsigned integer, and floating point types according to its size, it's better to just highlight them.

Online regex: https://regex101.com/r/kpYW7Z/1

@zyedidia zyedidia merged commit cb260bf into zyedidia:master Jul 11, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants