commit c025a60ce9e7741f18e203d612f7492aa1197572
parent 5e1f90d8fa92466efd3290185a6aa3f84d3f86da
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Mon, 3 Jun 2019 15:01:28 +0200
tweaks: rename a function and a variable, for contrast and variety
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/rcfile.c b/src/rcfile.c
@@ -289,7 +289,7 @@ bool nregcomp(const char *regex, int compile_flags)
/* Parse the next syntax name and its possible extension regexes from the
* line at ptr, and add it to the global linked list of color syntaxes. */
-void parse_syntax(char *ptr, bool headers_only)
+void begin_a_syntax(char *ptr, bool headers_only)
{
char *nameptr = ptr;
@@ -583,12 +583,12 @@ void parse_one_include(char *file, syntaxtype *syntax)
/* Apply any stored extendsyntax commands. */
while (extra != NULL) {
char *keyword = extra->data;
- char *ptr = parse_next_word(extra->data);
+ char *therest = parse_next_word(extra->data);
nanorc = extra->filename;
lineno = extra->lineno;
- if (!parse_syntax_commands(keyword, ptr))
+ if (!parse_syntax_commands(keyword, therest))
rcfile_error(N_("Command \"%s\" not understood"), keyword);
extra = extra->next;
@@ -1078,7 +1078,7 @@ void parse_rcfile(FILE *rcstream, bool syntax_only, bool headers_only)
if (opensyntax && lastcolor == NULL && live_syntax->filename == NULL)
rcfile_error(N_("Syntax \"%s\" has no color commands"),
live_syntax->name);
- parse_syntax(ptr, headers_only);
+ begin_a_syntax(ptr, headers_only);
}
} else if (strcasecmp(keyword, "header") == 0) {
if (headers_only || !syntax_only)