doc: fix misc typos for source and region highlighter

This commit is contained in:
Delapouite 2018-11-09 08:39:00 +01:00
parent b96ab67479
commit 4c68abab11
3 changed files with 4 additions and 3 deletions

View File

@ -72,7 +72,7 @@ of the file onto the filesystem
*source* <filename> <param>...:: *source* <filename> <param>...::
execute commands in <filename> execute commands in <filename>
parameters are avilable in the sourced script through the `arg` values parameters are available in the sourced script as `%arg{0}`, `%arg{1}`, …
== Clients and Sessions == Clients and Sessions

View File

@ -1304,7 +1304,8 @@ const CommandDesc debug_cmd = {
const CommandDesc source_cmd = { const CommandDesc source_cmd = {
"source", "source",
nullptr, nullptr,
"source <filename> <params>...: execute commands contained in <filename>", "source <filename> <params>...: execute commands contained in <filename>\n"
"parameters are available in the sourced script as %arg{0}, %arg{1}, …",
ParameterDesc{ {}, ParameterDesc::Flags::None, 1, (size_t)-1 }, ParameterDesc{ {}, ParameterDesc::Flags::None, 1, (size_t)-1 },
CommandFlags::None, CommandFlags::None,
CommandHelper{}, CommandHelper{},

View File

@ -2240,7 +2240,7 @@ void register_highlighters()
registry.insert({ registry.insert({
"region", "region",
{ RegionsHighlighter::create_region, { RegionsHighlighter::create_region,
"Parameters: [-match-capture] [-recurse <recurse>] <opening> <closing> <type> <params>..." "Parameters: [-match-capture] [-recurse <recurse>] <opening> <closing> <type> <params>...\n"
"Define a region for a regions highlighter, and apply the given delegate\n" "Define a region for a regions highlighter, and apply the given delegate\n"
"highlighter as defined by <type> and eventual <params>...\n" "highlighter as defined by <type> and eventual <params>...\n"
"The region starts at <begin> match and ends at the first <end>\n" "The region starts at <begin> match and ends at the first <end>\n"