* lib/dfa.c (lex): Pay no attention to RE_LIMITED_OPS when
deciding how to parse '\n', since regcomp.c doesn’t.
2022-05-23 Paul Eggert <eggert@cs.ucla.edu>
+ dfa: '\n' is not governed by RE_LIMITED_OPS
+ * lib/dfa.c (lex): Pay no attention to RE_LIMITED_OPS when
+ deciding how to parse '\n', since regcomp.c doesn’t.
+
dfa: new option DFA_STRAY_BACKSLASH_WARN
This is for grep, which wants to warn about stray backslashes that
lead to unspecified behavior. For example, "grep -oi '\a'"
return dfa->lex.lasttok = OR;
case '\n':
- if (dfa->syntax.syntax_bits & RE_LIMITED_OPS
- || !(dfa->syntax.syntax_bits & RE_NEWLINE_ALT))
+ if (!(dfa->syntax.syntax_bits & RE_NEWLINE_ALT))
goto default_case;
if (backslash)
goto normal_char;