Skip to content

Add a utility for deferred parsing #57

@btk5h

Description

@btk5h

Custom syntax may be difficult to use due to the nature of how Skript loads scripts. A utility should be added that defers parsing of a line to runtime (and caches the resulting Statement) to ensure that syntaxes have time to load.

Caveats:
This is an escape hatch and must not be encouraged.

If used to wait for custom syntax, all relevant syntaxes must be loaded before the statement is called. This may not hold true in events that run before all scripts load (e.g. script load, syntax parse).

Proposed syntax:

~ <.+> 

Metadata

Metadata

Assignees

Labels

priority: lowNot essential, but would be nice to complete (quality-of-life)type: enhancement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions