summaryrefslogtreecommitdiffhomepage
path: root/src/parser.c
diff options
context:
space:
mode:
authorSean Kurtz <seankurtz75@gmail.com>2026-11-18 18:04:28 -0600
committerSean Kurtz <seankurtz75@gmail.com>2026-11-18 18:04:28 -0600
commitd51368ffc48a1521796e5f582b489306da5fd5ce (patch)
tree6782d2b8656967388a98798e59e4ef1ed4803096 /src/parser.c
parent199f4059adbcfbd8a54d28a2f4a4ff34b0857e84 (diff)
downloadzash-d51368ffc48a1521796e5f582b489306da5fd5ce.tar.gz
docs: say it in short sentences
DESIGN.md, README.md and the Doxygen comments leaned on semicolons to join clauses and on trailing "which" clauses to add afterthoughts. Both read as machine-written prose. Each joined clause is now its own sentence, and the afterthoughts are either part of the sentence or a sentence of their own. Also corrected: README said C11 in two places (the tree builds C17), the completion section still described the pre-HLQ-rule filters and the 64-call resume limit, and the z/OS job-control note still called SPAWN_SETTCPGRP unverified.
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/parser.c b/src/parser.c
index 961e5c5..bd95713 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -669,7 +669,7 @@ static void read_double_quoted(pbuild *b) {
* @brief Read text into word parts until the construct `mode` describes ends.
*
* This one function serves words, double-quoted strings, the word of
- * `${x-word}`, arithmetic, and here-document bodies; `mode` says which
+ * `${x-word}`, arithmetic, and here-document bodies. `mode` says which
* characters are special and what terminates.
*
* @param b Word being built.
@@ -805,7 +805,7 @@ static keyword keyword_lookup(const char *s) {
}
/**
- * @brief Read a redirection operator; `c` is its first character.
+ * @brief Read a redirection operator. `c` is its first character.
*/
static void read_redir_op(int c, int fd) {
tok.t = T_REDIR;
@@ -1225,7 +1225,7 @@ static node *new_node(node_kind kind) {
}
/**
- * @brief Parse one redirection; the operator token is current.
+ * @brief Parse one redirection. The operator token is current.
*/
static redir *parse_redir(void) {
redir *r = pnew(sizeof *r);
@@ -2080,7 +2080,7 @@ static node *parse_substring(const char *s, size_t len) {
* @brief Parse a string the way a here-document body is parsed.
*
* Parameter expansions, command substitutions and arithmetic are
- * recognised; quotes are ordinary characters. This is how PS1, PS2 and
+ * recognised. Quotes are ordinary characters. This is how PS1, PS2 and
* PS4 are prepared for expansion. The parser's own state is saved and
* restored, so this is safe to call while a command is being parsed (the
* PS2 prompt is printed from inside the lexer).