aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/lua-bit.txt
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2025-03-09 10:27:28 -0700
committerGitHub <noreply@github.com>2025-03-09 10:27:28 -0700
commit34a2bfdcc5ce03a1c8e2128cd1c3e7ab99755d12 (patch)
tree70d05aff44f288fe46121c83431137b58cd7d9b5 /runtime/doc/lua-bit.txt
parent903242f160faff5f7e3b9ae1a5273ac75a55ed6b (diff)
downloadrneovim-34a2bfdcc5ce03a1c8e2128cd1c3e7ab99755d12.tar.gz
rneovim-34a2bfdcc5ce03a1c8e2128cd1c3e7ab99755d12.tar.bz2
rneovim-34a2bfdcc5ce03a1c8e2128cd1c3e7ab99755d12.zip
fix(build): vimdoc tags are not validated #32801
Problem: "make lintdoc" is not validating vimdoc (:help) tags. Solution: - Call `lang_tree:parse()` to init the parser. - Load netrw 🤢 explicitly, since it was moved to `pack/dist/opt/`. - Fix invalid help tags.
Diffstat (limited to 'runtime/doc/lua-bit.txt')
-rw-r--r--runtime/doc/lua-bit.txt12
1 files changed, 5 insertions, 7 deletions
diff --git a/runtime/doc/lua-bit.txt b/runtime/doc/lua-bit.txt
index 4c47010113..dde235d141 100644
--- a/runtime/doc/lua-bit.txt
+++ b/runtime/doc/lua-bit.txt
@@ -86,19 +86,17 @@ Bit operations
y = bit.tobit(x) *bit.tobit()*
Normalizes a number to the numeric range for bit operations and returns
it. This function is usually not needed since all bit operations already
- normalize all of their input arguments. Check the |luabit-semantics| for
- details.
+ normalize all of their input arguments. See |lua-bit-semantics|.
Example: >lua
- print(0xffffffff) --> 4294967295 (*)
+ print(0xffffffff) --> 4294967295 (see Note)
print(bit.tobit(0xffffffff)) --> -1
printx(bit.tobit(0xffffffff)) --> 0xffffffff
print(bit.tobit(0xffffffff + 1)) --> 0
print(bit.tobit(2^40 + 1234)) --> 1234
<
- (*) See the treatment of |lua-bit-hex-literals| for an explanation why the
- printed numbers in the first two lines differ (if your Lua installation
- uses a double number type).
+ Note: |lua-bit-hex-literals| explains why the numbers printed in the first
+ two lines differ (if your Lua installation uses a double number type).
y = bit.tohex(x [,n]) *bit.tohex()*
Converts its first argument to a hex string. The number of hex digits is
@@ -369,7 +367,7 @@ strongly advised not to rely on undefined or implementation-defined behavior.
- Non-integral numbers may be rounded or truncated in an
implementation-defined way. This means the result could differ between
different BitOp versions, different Lua VMs, on different platforms or
- even between interpreted vs. compiled code (as in |LuaJIT|). Avoid
+ even between interpreted vs. compiled code (as in LuaJIT). Avoid
passing fractional numbers to bitwise functions. Use `math.floor()` or
`math.ceil()` to get defined behavior.
- Lua provides auto-coercion of string arguments to numbers by default. This