You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/advanced/experiments.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,3 +26,21 @@ Deferred parsing allows you to prefix any line with `(parse[d] later)` to defer
26
26
This should only be used when two custom syntaxes refer to each other. Other issues should be resolved by reordering custom syntax definitions and ensuring that libraries containing custom syntax load before other scripts.
27
27
{% endhint %}
28
28
29
+
30
+
## Preloading
31
+
When preloading is enabled in `config.yml`, custom syntax will be available from any scripts, independent of file names.
32
+
Preloading is only available from Skript 2.5-alpha6+, using skript-reflect 2.2-alpha1 or above.
33
+
34
+
There is one case for which custom syntax can't be preloaded, that is when it has a `parse` section. `parse` sections
35
+
can't be used in preloadable syntax, so to still allow for custom syntax to run code when being parsed, there are the
36
+
`safe parse` sections. These sections have the same purpose as normal `parse` sections, with a few differences:
37
+
- In safe parse sections
38
+
- Functions can't be used.
39
+
- Options (including computed options) can't be used.
40
+
- Some imports can't be used (if they contain options for example).
41
+
42
+
Because of these differences, custom syntax with `safe parse` sections are preloadable.
43
+
44
+
{% hint style="warning" %}
45
+
Be careful when using custom syntax in `on script load` events, as the custom syntax might not have been fully parsed yet.
Copy file name to clipboardExpand all lines: docs/basics/reading-javadocs.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,7 @@
3
3
Most public APIs and libraries offer documentation in the form of Javadocs. Javadocs outline what features of a library are publicly accessible to developers.
4
4
5
5
Here are a few links to some commonly referenced Javadocs:
6
-
[Java SE 8 Javadocs](https://docs.oracle.com/javase/8/docs/api/overview-summary.html)
0 commit comments