Skip to content

syntax: c: support C23 integer literal separators - #4298

Closed
jimi-21 wants to merge 1 commit into
micro-editor:masterfrom
jimi-21:syntax/c23-integer-separators
Closed

jimi-21 wants to merge 1 commit into
micro-editor:masterfrom
jimi-21:syntax/c23-integer-separators

Conversation

@jimi-21

@jimi-21 jimi-21 commented Nov 12, 2026

Copy link
Copy Markdown

Summary

  • support apostrophe separators in C23 decimal, octal, hexadecimal, and binary integer literals
  • prevent separators from being interpreted as the start of character literals
  • add regression coverage for all four bases, integer suffixes, and ordinary integer literals

Fixes #4289.

Validation

  • go test ./...
  • go generate ./runtime
  • go build ./cmd/micro
  • go test ./internal/...
  • go test ./cmd/...
  • gofmt -l . (no output)

AI assistance

This contribution was prepared with Kimi Code assistance, including the regex changes and regression tests. The change and verification results were reviewed before submission.

@Andriamanitra

Copy link
Copy Markdown
Collaborator

this is completely nonsensical AI slop

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.

Support C23 integer literal apostrophe highlighting

2 participants