Skip to content

Use native prism#254

Closed
schneems wants to merge 7 commits intomainfrom
schneems/use-native-prism
Closed

Use native prism#254
schneems wants to merge 7 commits intomainfrom
schneems/use-native-prism

Conversation

@schneems
Copy link
Copy Markdown
Collaborator

@schneems schneems commented Apr 7, 2026

Based on work by @Earlopain in #251 which was a combination of a bunch of smaller PRs. This PR just rebases the final commit everything else has been merged in independently.

@schneems schneems marked this pull request as draft April 7, 2026 17:05
It mostly continues to rely on tokens.
But for a few things like endless method defs
and multiline method continuations
it uses AST. These are either very difficult
or not possible to find just by checking tokens.

Because of multiline method calls, comments now don't need to be trimmed anymore.
@schneems schneems force-pushed the schneems/use-native-prism branch from e3552e1 to 4fa6034 Compare April 7, 2026 17:05
@schneems schneems mentioned this pull request Apr 7, 2026
schneems added 6 commits April 7, 2026 12:46
Say what the method does, versus saying why we're using it
This might never be a hotspot, but I had to optimize away some sorts in other locations. My preference is to sort once if the value won't be changing (this also assumes we won't re-use a visitor once used, perhaps we need to check and error if that assumption doesn't hold).
@schneems schneems closed this Apr 7, 2026
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