aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-01-04 14:52:13 +0300
committerZyX <kp-pav@yandex.ru>2017-01-04 14:52:13 +0300
commita934144e048e76875dc2584c249b83d2a84fa731 (patch)
treeace1ddcb87cfcd5f92d02ae2620b3bfed2e8ac64
parent6f9be2464c9385d0f3c8a7bd6a10e765826ceddf (diff)
downloadrneovim-a934144e048e76875dc2584c249b83d2a84fa731.tar.gz
rneovim-a934144e048e76875dc2584c249b83d2a84fa731.tar.bz2
rneovim-a934144e048e76875dc2584c249b83d2a84fa731.zip
doc: Document that character constants are supported
-rw-r--r--runtime/doc/pi_msgpack.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/doc/pi_msgpack.txt b/runtime/doc/pi_msgpack.txt
index 95d6ff7467..d695ac42cb 100644
--- a/runtime/doc/pi_msgpack.txt
+++ b/runtime/doc/pi_msgpack.txt
@@ -128,6 +128,11 @@ msgpack#eval({string}, {dict}) *msgpack#eval()*
always evaluated to |msgpack-special-dict| values, as well as
hexadecimal digits. When evaluating maps order of keys is preserved.
+ Note that in addition to regular integer representations that may be
+ obtained using |msgpack#string()| msgpack#eval() also supports C-style
+ “character” integer constants like `'/'` (equivalent to
+ `char2nr('/')`: `47`). This also allows `'\0'` (number is decimal).
+
*msgpack#equal*
msgpack#equal({msgpack-value}, {msgpack-value}) *msgpack#equal()*
Returns 1 if given values are equal, 0 otherwise. When comparing