Added important note

master
Aadhavan Srinivasan 12 hours ago
parent d210a85253
commit ae09462bd4

@ -681,7 +681,8 @@ func thompson(re []postfixNode) (Reg, error) {
// Replace ESC_BACKSLASH with actual backslash, so that we can actually check if we encounter it // Replace ESC_BACKSLASH with actual backslash, so that we can actually check if we encounter it
replaceByValue([]int(state.content), int(ESC_BACKSLASH), '\\') replaceByValue([]int(state.content), int(ESC_BACKSLASH), '\\')
replaceByValue(state.except, ESC_BACKSLASH, '\\') // Uncommenting this seems to make one of the test cases fail. Why?
// replaceByValue(state.except, ESC_BACKSLASH, '\\')
nfa = append(nfa, &state) nfa = append(nfa, &state)
} }

Loading…
Cancel
Save