Skip to content

Update Zig lexer and example - #1189

Merged
alecthomas merged 1 commit into
alecthomas:masterfrom
davidpaquin:zig-lexer-update
Jan 6, 2026
Merged

Update Zig lexer and example#1189
alecthomas merged 1 commit into
alecthomas:masterfrom
davidpaquin:zig-lexer-update

Conversation

@davidpaquin

Copy link
Copy Markdown
Contributor

It's been a while since the Zig lexer has been updated, and there have been a number of changes to the language since then. A rough summary of this patch:

  • Adds new keywords that were not being tracked before, e.g. opaque and anytype
  • Removes keywords that are no longer in the language, e.g. usingnamespace
  • Replaces the test file with a larger one that covers more of the language
  • Follows more best-practice lexer structuring/optimizations, e.g. combining common token sequences when possible
@alecthomas
alecthomas merged commit 3e1f428 into alecthomas:master Jan 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants