Skip to content

Conversation

bluelhf
Copy link
Contributor

@bluelhf bluelhf commented Oct 3, 2025

Previously at #8222, closed because PR was ahead base.

This PR moves many syntaxes to use @Example-annotations instead of @Examples. The goal of this PR is to move all Skript syntaxes towards the new repeatable annotations. This results in cleaner generated JSON, with unambiguous data when multiple examples are present.

Warning

This pull request was, due to its scale and simplicity, made in large part using agentic Copilot. Copilot has proven to be quite bad at tasks like programming and understanding language, and mistakes are expected.

Testing Completed

I have generated the docs and looked for errors as well as verified every example by hand.

Note about line endings

End-of-line characters are not present when examples are defined in a single line. We should consider adapting JSONGenerator to insert an end-of-line character at the end of each example if it is missing. This way, all examples consist of POSIX-compliant 'lines', which always end in an end-of-line character.

State of pull request

  • All syntaxes using @Examples migrated
  • All syntaxes verified independently (thanks @sovdeeth!)

@bluelhf bluelhf marked this pull request as ready for review October 19, 2025 00:21
@bluelhf bluelhf requested review from a team and UnderscoreTud as code owners October 19, 2025 00:21
@bluelhf bluelhf requested review from Absolutionism and removed request for a team October 19, 2025 00:21
Copy link
Member

@sovdeeth sovdeeth left a comment

Choose a reason for hiding this comment

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

only looked through conditions

…o Example

this changes the rest of the vanilla Skript syntaxes. the old Examples annotation is left there because addons probably use it still
@bluelhf bluelhf force-pushed the dev/examples-migration branch from 96dcf0f to 332d649 Compare October 19, 2025 00:51
thanks, sovde !

Co-authored-by: sovdee <[email protected]>
@bluelhf bluelhf requested a review from sovdeeth October 19, 2025 01:24
Copy link
Member

@sovdeeth sovdeeth left a comment

Choose a reason for hiding this comment

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

400/681

Copy link
Member

@sovdeeth sovdeeth left a comment

Choose a reason for hiding this comment

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

555/680

@skriptlang-automation skriptlang-automation bot added the needs reviews A PR that needs additional reviews label Oct 19, 2025
applies changes from code review

Co-authored-by: sovde <[email protected]>
Copy link
Member

@sovdeeth sovdeeth left a comment

Choose a reason for hiding this comment

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

680/680!

@sovdeeth sovdeeth added enhancement Feature request, an issue about something that could be improved, or a PR improving something. documentation Related to Skript's official documentation. labels Oct 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Related to Skript's official documentation. enhancement Feature request, an issue about something that could be improved, or a PR improving something. needs reviews A PR that needs additional reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants