summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2020-05-03 23:10:59 -0400
committergumi <git@gumi.ca>2020-05-07 16:05:10 -0400
commit554101ef7ff2e4d8e9991b0ef72b38adcbbabec9 (patch)
tree4134687682286d1ba070014f57cc7a94865bc4e5 /doc
parentef2564a4e826b24aeef704654dacc0ecf9959206 (diff)
downloadhercules-554101ef7ff2e4d8e9991b0ef72b38adcbbabec9.tar.gz
hercules-554101ef7ff2e4d8e9991b0ef72b38adcbbabec9.tar.bz2
hercules-554101ef7ff2e4d8e9991b0ef72b38adcbbabec9.tar.xz
hercules-554101ef7ff2e4d8e9991b0ef72b38adcbbabec9.zip
add documentation for the number separators
Diffstat (limited to 'doc')
-rw-r--r--doc/script_commands.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 64ba17ab7..a15baf2c2 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -460,6 +460,13 @@ Number values can't exceed the limits of an integer variable: Any number
greater than INT_MAX (2147483647) or smaller than INT_MIN (-2147483648) will
be capped to those values and will cause a warning to be reported.
+Underscores can also be used as visual separators for digit grouping purposes:
+ 2_147_483_647
+ 0x7FFF_FFFF
+
+Keep in mind that number literals cannot start or end with a separator and no
+more than one separator can be used in a row (so 12_3___456 is illegal).
+
Variables
---------