summaryrefslogtreecommitdiff
path: root/src/dfasearch.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2019-12-22 17:53:02 -0800
committerJim Meyering <meyering@fb.com>2019-12-22 17:53:02 -0800
commit6b4ee2c0b163de6fdac2dca6ddca6d3065d45bcd (patch)
tree341fc041fb6e43c2280a776b5a85621a22fe5dd7 /src/dfasearch.c
parent5b1d1eac2c10f9034edee337c34d352ca980f160 (diff)
downloadgrep-6b4ee2c0b163de6fdac2dca6ddca6d3065d45bcd.tar.gz
maint: adjust new comments
* src/dfasearch.c (possible_backrefs_in_pattern): Remove a duplicate "a", insert a "be" and a comma, and reformat.
Diffstat (limited to 'src/dfasearch.c')
-rw-r--r--src/dfasearch.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/dfasearch.c b/src/dfasearch.c
index eb7732bd..b1a242a5 100644
--- a/src/dfasearch.c
+++ b/src/dfasearch.c
@@ -110,16 +110,16 @@ kwsmusts (struct dfa_comp *dc)
static bool _GL_ATTRIBUTE_PURE
possible_backrefs_in_pattern (char const *keys, ptrdiff_t len, bool bs_safe)
{
- /* Normally a backslash, but in an unsafe encoding this is a a
- non-char value so that the comparison below always fails, because
- if there are two adjacent '\' bytes the first might the last byte
- of a multibyte character. */
+ /* Normally a backslash, but in an unsafe encoding this is a non-char
+ value so that the comparison below always fails, because if there
+ are two adjacent '\' bytes, the first might be the last byte of a
+ multibyte character. */
int second_backslash = bs_safe ? '\\' : CHAR_MAX + 1;
/* This code can return true even if KEYS lacks a backreference, for
- patterns like [\2], or for encodings where '\' appears as
- the last byte of a multibyte character. However, false alarms
- should be rare and do not affect correctness. */
+ patterns like [\2], or for encodings where '\' appears as the last
+ byte of a multibyte character. However, false alarms should be
+ rare and do not affect correctness. */
/* Do not look for a backslash in the pattern's last byte, since it
can't be part of a backreference and this streamlines the code. */