Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds support for default expressions. The system is fundamentally different from Skript's though.
One can now append the '?' flag (or nullable flag) to make the parser search for default values if the expression would be omitted (ex: because of an optional group).
An example could be:
%duration% before [%date?%]
.If the 'date' type would be omitted, the parser expects (rather than tries) to find a default expression. Support for registering these default expressions is also added. In Skript, the parser will always try to find default expressions unless specified explicitly. Skript-parser will only expect to find default expressions if specified explicitly. That's the main difference between the systems.
This pull request is marked as draft because:
Furthermore: