summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorSteve Lorello <42971704+slorello89@users.noreply.github.com>2022-06-08 08:30:04 -0400
committerGitHub <noreply@github.com>2022-06-08 15:30:04 +0300
commit9e40b076dd570cd7ecf27e1e8a6ca8d7fabf2302 (patch)
tree9d681852dfc53117e3dc52545aee46afb1801ba1 /utils
parentf22bfe86b6db59ae6d5357b44f9e86418746c31c (diff)
downloadredis-9e40b076dd570cd7ecf27e1e8a6ca8d7fabf2302.tar.gz
Module api doc generator, fixing issue with negative lookback terminating at "." (#10832)
There is a little regex that wraps up all the free-floating functions in the doc-block e.g. malloc() with backticks. in case of `redis.call()`, it used to wrap just `call()` in backticks.
Diffstat (limited to 'utils')
-rwxr-xr-xutils/generate-module-api-doc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/generate-module-api-doc.rb b/utils/generate-module-api-doc.rb
index 1f7b7c2e5..d4282cbfa 100755
--- a/utils/generate-module-api-doc.rb
+++ b/utils/generate-module-api-doc.rb
@@ -20,7 +20,7 @@ def markdown(s)
# Add backquotes around RedisModule functions and type where missing.
l = l.gsub(/(?<!`)RedisModule[A-z]+(?:\*?\(\))?/){|x| "`#{x}`"}
# Add backquotes around c functions like malloc() where missing.
- l = l.gsub(/(?<![`A-z])[a-z_]+\(\)/, '`\0`')
+ l = l.gsub(/(?<![`A-z.])[a-z_]+\(\)/, '`\0`')
# Add backquotes around macro and var names containing underscores.
l = l.gsub(/(?<![`A-z\*])[A-Za-z]+_[A-Za-z0-9_]+/){|x| "`#{x}`"}
# Link URLs preceded by space or newline (not already linked)