summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2022-06-17 14:33:51 +0300
committerArnold D. Robbins <arnold@skeeve.com>2022-06-17 14:33:51 +0300
commit77a528ef3dff60c14f8115b5df87156d53646ac9 (patch)
tree3c34637913c42f1941d4bad8c8bcf42e0166a95b /support
parent3fb5ffc0dd119cc300b8bd4e1d368a9b39aba850 (diff)
downloadgawk-77a528ef3dff60c14f8115b5df87156d53646ac9.tar.gz
Update dfa.
Diffstat (limited to 'support')
-rw-r--r--support/ChangeLog4
-rw-r--r--support/dfa.c2
-rw-r--r--support/dfa.h6
3 files changed, 11 insertions, 1 deletions
diff --git a/support/ChangeLog b/support/ChangeLog
index 94c37434..84266d6d 100644
--- a/support/ChangeLog
+++ b/support/ChangeLog
@@ -1,3 +1,7 @@
+2022-06-17 Arnold D. Robbins <arnold@skeeve.com>
+
+ * dfa.c, dfa.h: Sync with GNULIB.
+
2022-06-03 Arnold D. Robbins <arnold@skeeve.com>
* dfa.c, dfa.h: Sync with GNULIB.
diff --git a/support/dfa.c b/support/dfa.c
index bd4c5f05..4f8367af 100644
--- a/support/dfa.c
+++ b/support/dfa.c
@@ -1563,6 +1563,8 @@ lex (struct dfa *dfa)
}
dfawarn (msg);
}
+ FALLTHROUGH;
+ case ']': case '}':
normal_char:
dfa->lex.laststart = false;
/* For multibyte character sets, folding is done in atom. Always
diff --git a/support/dfa.h b/support/dfa.h
index 91ec1d80..043f0e97 100644
--- a/support/dfa.h
+++ b/support/dfa.h
@@ -79,7 +79,11 @@ enum
merely a warning. */
DFA_CONFUSING_BRACKETS_ERROR = 1 << 2,
- /* Warn about stray backslashes before ordinary characters. */
+ /* Warn about stray backslashes before ordinary characters other
+ than ] and } which are special because even though POSIX
+ says \] and \} have undefined interpretation, platforms
+ reliably ignore those stray backlashes and warning about them
+ would likely cause more trouble than it's worth. */
DFA_STRAY_BACKSLASH_WARN = 1 << 3,
/* Warn about * appearing out of context at the start of an