From 4c68abab11279065ed6170bea2d78285c165cd3a Mon Sep 17 00:00:00 2001 From: Delapouite Date: Fri, 9 Nov 2018 08:39:00 +0100 Subject: [PATCH] doc: fix misc typos for source and region highlighter --- doc/pages/commands.asciidoc | 2 +- src/commands.cc | 3 ++- src/highlighters.cc | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/pages/commands.asciidoc b/doc/pages/commands.asciidoc index b5ebefd0b..cdca31ed0 100644 --- a/doc/pages/commands.asciidoc +++ b/doc/pages/commands.asciidoc @@ -72,7 +72,7 @@ of the file onto the filesystem *source* ...:: execute commands in - 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 diff --git a/src/commands.cc b/src/commands.cc index f65d4a206..bbb32b146 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -1304,7 +1304,8 @@ const CommandDesc debug_cmd = { const CommandDesc source_cmd = { "source", nullptr, - "source ...: execute commands contained in ", + "source ...: execute commands contained in \n" + "parameters are available in the sourced script as %arg{0}, %arg{1}, …", ParameterDesc{ {}, ParameterDesc::Flags::None, 1, (size_t)-1 }, CommandFlags::None, CommandHelper{}, diff --git a/src/highlighters.cc b/src/highlighters.cc index dbc7e8eb0..1493724a4 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -2240,7 +2240,7 @@ void register_highlighters() registry.insert({ "region", { RegionsHighlighter::create_region, - "Parameters: [-match-capture] [-recurse ] ..." + "Parameters: [-match-capture] [-recurse ] ...\n" "Define a region for a regions highlighter, and apply the given delegate\n" "highlighter as defined by and eventual ...\n" "The region starts at match and ends at the first \n"