Skip to content

Conversation

@erenkarakal
Copy link
Member

Problem

In languages like Python and JavaScript, starting function names with underscores is a common pattern to indicate that the function is private or meant for internal use only. Skript currently doesn't allow this for seemingly no reason.

Solution

Changes the function name pattern to allow underscores at the beginning

Testing Completed

Added a simple test to StructFunction.sk

Supporting Information


Completes: none
Related: none

@erenkarakal erenkarakal requested review from a team as code owners June 12, 2025 14:43
@erenkarakal erenkarakal requested review from Burbulinis and UnderscoreTud and removed request for a team June 12, 2025 14:43
@skriptlang-automation skriptlang-automation bot added the needs reviews A PR that needs additional reviews label Jun 12, 2025
@erenkarakal erenkarakal added the feature Pull request adding a new feature. label Jun 12, 2025
@skriptlang-automation skriptlang-automation bot added feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. and removed needs reviews A PR that needs additional reviews labels Jun 12, 2025
@Efnilite Efnilite added the functions Related to functions label Jun 12, 2025
@Efnilite Efnilite merged commit 3c4db9d into SkriptLang:dev/feature Jun 12, 2025
5 checks passed
@skriptlang-automation skriptlang-automation bot added completed The issue has been fully resolved and the change will be in the next Skript update. and removed feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. labels Jun 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

completed The issue has been fully resolved and the change will be in the next Skript update. feature Pull request adding a new feature. functions Related to functions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants