Fix marker checking for ruby help text

develop
Myk 2022-09-22 17:39:54 -07:00 committed by GitHub
parent 3532ad3633
commit 4d662adfe5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

@ -275,7 +275,7 @@ local function make_script_entry(old_entry, entry_name, kwargs)
local is_rb = source_path:endswith('.rb') local is_rb = source_path:endswith('.rb')
update_entry(entry, lines, update_entry(entry, lines,
{begin_marker=(is_rb and SCRIPT_DOC_BEGIN_RUBY or SCRIPT_DOC_BEGIN), {begin_marker=(is_rb and SCRIPT_DOC_BEGIN_RUBY or SCRIPT_DOC_BEGIN),
end_marker=(is_rb and SCRIPT_DOC_BEGIN_RUBY or SCRIPT_DOC_END), end_marker=(is_rb and SCRIPT_DOC_END_RUBY or SCRIPT_DOC_END),
first_line_is_short_help=(is_rb and '#' or '%-%-')}) first_line_is_short_help=(is_rb and '#' or '%-%-')})
return entry return entry
end end