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

Update Hare lexer #1170

Closed
wants to merge 1 commit into from
Closed

Update Hare lexer #1170

wants to merge 1 commit into from

Conversation

wackbyte
Copy link

Updates keywords to match the current syntax, sorts everything alphabetically, and renames "at rules" to "attributes" as they are named in the specification. Also styles enum and union as keywords rather than types to be consistent with struct, and the same for void because it has a dual purpose as both a type and a constant.

Keywords:
+ enum
+ union
+ void

Functions:
+ align
+ offset

Types:
+ never
+ nullable
+ opaque
+ valist
- char
- enum
- union
- void

Attributes:
+ packed
+ threadlocal
- noreturn

Additionally, sort everything alphabetically and rename "at rules" to
"attributes."
Copy link
Collaborator

@rnpnr rnpnr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch but can you send it to upstream scintillua instead? I will pull it into #1133 once its accepted in scintillua.

@rnpnr rnpnr closed this Feb 27, 2024
@wackbyte
Copy link
Author

wackbyte commented Feb 27, 2024

Ah, okay, thanks!

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